Skip to content

Commit

Permalink
Merged pull request "Fix empty struct initializers": #416
Browse files Browse the repository at this point in the history
  • Loading branch information
apanteleev committed Nov 9, 2024
2 parents 6914089 + 9c9cb20 commit f78d722
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/refresh/vkpt/path_tracer.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ vkpt_pt_create_all_dynamic(
{
scratch_buf_ptr = 0;

accel_build_batch_t batch = {};
accel_build_batch_t batch = { 0 };

uint64_t offset_vertex_base = 0;
uint64_t offset_vertex = offset_vertex_base;
Expand Down Expand Up @@ -923,7 +923,7 @@ vkpt_pt_create_toplevel(VkCommandBuffer cmd_buf, int idx, const EntityUploadInfo
buffer_unmap(buf_instances + idx);
instance_data = NULL;

accel_build_batch_t batch = {};
accel_build_batch_t batch = { 0 };

scratch_buf_ptr = 0;
build_tlas(&batch, &tlas_geometry[idx], buf_instances[idx].address, num_instances_geometry);
Expand Down
2 changes: 1 addition & 1 deletion src/refresh/vkpt/uniform_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static size_t ubo_alignment = 0;
VkResult
vkpt_uniform_buffer_create()
{
VkDescriptorPoolSize pool_sizes[2] = { };
VkDescriptorPoolSize pool_sizes[2] = { 0 };
VkDescriptorSetLayoutBinding ubo_layout_bindings[2] = { 0 };

ubo_layout_bindings[0].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER;
Expand Down

0 comments on commit f78d722

Please sign in to comment.