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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user