Create typedef for IDs

There was a code, where id for something was u32, and
u16 for other things. I have created a typedef to fix
that

Signed-off-by: Piotr Krygier <piotrkrygier@everyonecancode@xyz>
This commit is contained in:
Piotr Krygier
2026-02-10 10:16:32 +01:00
parent 55e0ee261e
commit 954876549d
13 changed files with 117 additions and 105 deletions
+5 -5
View File
@@ -165,7 +165,7 @@ struct pipeline_t
struct pipeline_internal_t
{
uint32_t descriptor_set_ids[MAX_PIPELINE_COUNT];
rse_id_t descriptor_set_ids[MAX_PIPELINE_COUNT];
size_t pipelines_count;
size_t pipeline_layouts_count;
VkPipeline pipelines[MAX_PIPELINE_COUNT];
@@ -234,14 +234,14 @@ struct mesh_data_t {
struct debug_overlay_t
{
uint16_t texture_id;
rse_id_t texture_id;
uint32_t* pixels;
size_t pixels_size;
struct vulkan_image_t image_handle;
VkSampler sampler;
};
typedef rse_err_t(*renderer_function_t)(struct graphics_context_t* context, uint32_t renderer_id);
typedef rse_err_t(*renderer_function_t)(struct graphics_context_t* context, rse_id_t renderer_id);
struct renderer_t {
renderer_function_t render_function;
@@ -253,8 +253,8 @@ struct renderer_data_t {
};
struct font_character_data_t {
uint32_t mesh_id;
uint16_t texture_id;
rse_id_t mesh_id;
rse_id_t texture_id;
};
struct sized_font_data_t {