comparison semiconginev2/rendering/shaders.nim @ 1253:c4f98eb4bb05

fix: a few things
author sam <sam@basx.dev>
date Fri, 26 Jul 2024 23:39:24 +0700
parents 01e9f41d35b1
children e9b8d87b9883
comparison
equal deleted inserted replaced
1252:01e9f41d35b1 1253:c4f98eb4bb05
374 result.descriptorSetLayouts = CreateDescriptorSetLayouts[TShader]() 374 result.descriptorSetLayouts = CreateDescriptorSetLayouts[TShader]()
375 375
376 let pushConstant = VkPushConstantRange( 376 let pushConstant = VkPushConstantRange(
377 stageFlags: VkShaderStageFlags(VK_SHADER_STAGE_ALL_GRAPHICS), 377 stageFlags: VkShaderStageFlags(VK_SHADER_STAGE_ALL_GRAPHICS),
378 offset: 0, 378 offset: 0,
379 size: 128, # currently supported everywhere, places for two mat4 379 size: PUSH_CONSTANT_SIZE, # currently supported everywhere, places for two mat4
380 ) 380 )
381 381
382 let pipelineLayoutInfo = VkPipelineLayoutCreateInfo( 382 let pipelineLayoutInfo = VkPipelineLayoutCreateInfo(
383 sType: VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, 383 sType: VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO,
384 setLayoutCount: nSets, 384 setLayoutCount: nSets,