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:
@@ -54,7 +54,7 @@ rse_err_t descriptor_pool_initialize(struct graphics_context_t* context)
|
||||
return RSE_ERROR_NO_ERROR;
|
||||
}
|
||||
|
||||
rse_err_t descriptor_create_new_set(struct graphics_context_t* context, uint32_t* set_id)
|
||||
rse_err_t descriptor_create_new_set(struct graphics_context_t* context, rse_id_t* set_id)
|
||||
{
|
||||
if (context->descriptor_data.descriptor_sets_count >= DESCRIPTOR_MAX_SETS) {
|
||||
SDL_LogCritical(SDL_LOG_CATEGORY_GPU, "Reached maximum number of available descriptor sets");
|
||||
@@ -83,7 +83,7 @@ rse_err_t descriptor_add_layout(struct descriptor_set_layout_bindings_t* layout_
|
||||
|
||||
rse_err_t descriptor_set_finish(struct graphics_context_t* context,
|
||||
struct descriptor_set_layout_bindings_t* layout_bindings,
|
||||
uint32_t set_id)
|
||||
rse_id_t set_id)
|
||||
{
|
||||
VkDescriptorSetLayoutCreateInfo create_info = {0};
|
||||
|
||||
@@ -137,8 +137,8 @@ rse_err_t descriptor_build_sets(struct graphics_context_t* context)
|
||||
}
|
||||
|
||||
rse_err_t descriptor_attach_images(struct graphics_context_t* context,
|
||||
uint32_t descriptor_set_id,
|
||||
uint16_t* texture_ids,
|
||||
rse_id_t descriptor_set_id,
|
||||
rse_id_t* texture_ids,
|
||||
size_t images_count,
|
||||
VkSampler sampler,
|
||||
uint32_t binding)
|
||||
@@ -169,7 +169,7 @@ rse_err_t descriptor_attach_images(struct graphics_context_t* context,
|
||||
}
|
||||
|
||||
rse_err_t descriptor_attach_buffer(struct graphics_context_t* context,
|
||||
uint32_t descriptor_set_id,
|
||||
rse_id_t descriptor_set_id,
|
||||
struct vulkan_buffer_t* buffer,
|
||||
uint32_t binding,
|
||||
VkDescriptorType type)
|
||||
|
||||
Reference in New Issue
Block a user