# HG changeset patch # User sam # Date 1724688290 -25200 # Node ID 34832174824b6734c0a73263ff3219b90e57e64b # Parent 18eff4d97ab0692dd5481813e327a122b2e14fb9 fix: push consts need alignment diff -r 18eff4d97ab0 -r 34832174824b semicongine/rendering/renderer.nim --- a/semicongine/rendering/renderer.nim Mon Aug 26 20:24:29 2024 +0700 +++ b/semicongine/rendering/renderer.nim Mon Aug 26 23:04:50 2024 +0700 @@ -759,7 +759,7 @@ layout = pipeline.layout, stageFlags = VkShaderStageFlags(VK_SHADER_STAGE_ALL_GRAPHICS), offset = 0, - size = sizeof(pushConstant).uint32, + size = alignedTo(sizeof(pushConstant).uint32, 4), pValues = addr(pushConstant), ) render(commandBuffer, pipeline, mesh, instances, fixedVertexCount)