@@ -160,9 +160,9 @@ bool Ray::Vk::Pipeline::Init(Context *ctx, const RastState &rast_state, Program
160160
161161 VkPipelineVertexInputStateCreateInfo vtx_input_state_create_info = {
162162 VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO};
163- vtx_input_state_create_info.vertexBindingDescriptionCount = uint32_t ( bindings.size () );
163+ vtx_input_state_create_info.vertexBindingDescriptionCount = bindings.size ();
164164 vtx_input_state_create_info.pVertexBindingDescriptions = bindings.cdata ();
165- vtx_input_state_create_info.vertexAttributeDescriptionCount = uint32_t ( attribs.size () );
165+ vtx_input_state_create_info.vertexAttributeDescriptionCount = attribs.size ();
166166 vtx_input_state_create_info.pVertexAttributeDescriptions = attribs.cdata ();
167167
168168 VkPipelineInputAssemblyStateCreateInfo input_assembly_state_create_info = {
@@ -264,11 +264,11 @@ bool Ray::Vk::Pipeline::Init(Context *ctx, const RastState &rast_state, Program
264264 }
265265
266266 VkPipelineDynamicStateCreateInfo dynamic_state_ci = {VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO};
267- dynamic_state_ci.dynamicStateCount = uint32_t ( dynamic_states.size () );
267+ dynamic_state_ci.dynamicStateCount = dynamic_states.size ();
268268 dynamic_state_ci.pDynamicStates = dynamic_states.cdata ();
269269
270270 VkGraphicsPipelineCreateInfo pipeline_create_info = {VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO};
271- pipeline_create_info.stageCount = uint32_t ( shader_stage_create_info.size () );
271+ pipeline_create_info.stageCount = shader_stage_create_info.size ();
272272 pipeline_create_info.pStages = shader_stage_create_info.cdata ();
273273 pipeline_create_info.pVertexInputState = &vtx_input_state_create_info;
274274 pipeline_create_info.pInputAssemblyState = &input_assembly_state_create_info;
@@ -365,15 +365,15 @@ bool Ray::Vk::Pipeline::Init(Context *ctx, Program *prog, ILog *log) {
365365 auto &new_group = rt_shader_groups_.emplace_back ();
366366 new_group = {VK_STRUCTURE_TYPE_RAY_TRACING_SHADER_GROUP_CREATE_INFO_KHR};
367367 new_group.type = VK_RAY_TRACING_SHADER_GROUP_TYPE_GENERAL_KHR;
368- new_group.generalShader = uint32_t ( shader_stage_create_info.size () );
368+ new_group.generalShader = shader_stage_create_info.size ();
369369 new_group.anyHitShader = VK_SHADER_UNUSED_KHR;
370370 new_group.closestHitShader = VK_SHADER_UNUSED_KHR;
371371 new_group.intersectionShader = VK_SHADER_UNUSED_KHR;
372372 } else if (eShaderType (i) == eShaderType::Miss) {
373373 auto &new_group = rt_shader_groups_.emplace_back ();
374374 new_group = {VK_STRUCTURE_TYPE_RAY_TRACING_SHADER_GROUP_CREATE_INFO_KHR};
375375 new_group.type = VK_RAY_TRACING_SHADER_GROUP_TYPE_GENERAL_KHR;
376- new_group.generalShader = uint32_t ( shader_stage_create_info.size () );
376+ new_group.generalShader = shader_stage_create_info.size ();
377377 new_group.anyHitShader = VK_SHADER_UNUSED_KHR;
378378 new_group.closestHitShader = VK_SHADER_UNUSED_KHR;
379379 new_group.intersectionShader = VK_SHADER_UNUSED_KHR;
@@ -391,7 +391,7 @@ bool Ray::Vk::Pipeline::Init(Context *ctx, Program *prog, ILog *log) {
391391 } else {
392392 hit_group = &rt_shader_groups_[hit_group_index];
393393 }
394- hit_group->closestHitShader = uint32_t ( shader_stage_create_info.size () );
394+ hit_group->closestHitShader = shader_stage_create_info.size ();
395395 } else if (eShaderType (i) == eShaderType::AnyHit) {
396396 VkRayTracingShaderGroupCreateInfoKHR *hit_group = nullptr ;
397397 if (hit_group_index == -1 ) {
@@ -406,7 +406,7 @@ bool Ray::Vk::Pipeline::Init(Context *ctx, Program *prog, ILog *log) {
406406 } else {
407407 hit_group = &rt_shader_groups_[hit_group_index];
408408 }
409- hit_group->anyHitShader = uint32_t ( shader_stage_create_info.size () );
409+ hit_group->anyHitShader = shader_stage_create_info.size ();
410410 }
411411
412412 auto &stage_info = shader_stage_create_info.emplace_back ();
@@ -453,10 +453,10 @@ bool Ray::Vk::Pipeline::Init(Context *ctx, Program *prog, ILog *log) {
453453 } else /* if (type == ePipelineType::Raytracing) */ {
454454 VkRayTracingPipelineCreateInfoKHR info = {VK_STRUCTURE_TYPE_RAY_TRACING_PIPELINE_CREATE_INFO_KHR};
455455 info.pStages = shader_stage_create_info.cdata ();
456- info.stageCount = uint32_t ( shader_stage_create_info.size () );
456+ info.stageCount = shader_stage_create_info.size ();
457457 info.layout = layout_;
458458 info.maxPipelineRayRecursionDepth = 1 ;
459- info.groupCount = uint32_t ( rt_shader_groups_.size () );
459+ info.groupCount = rt_shader_groups_.size ();
460460 info.pGroups = rt_shader_groups_.cdata ();
461461
462462 const VkResult res = ctx->api ().vkCreateRayTracingPipelinesKHR (ctx->device (), VK_NULL_HANDLE, VK_NULL_HANDLE, 1 ,
0 commit comments