Mercurial > games > semicongine
changeset 1345:34832174824b
fix: push consts need alignment
author | sam <sam@basx.dev> |
---|---|
date | Mon, 26 Aug 2024 23:04:50 +0700 |
parents | 18eff4d97ab0 |
children | e6fdd7327847 |
files | semicongine/rendering/renderer.nim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)