Replies: 1 comment 4 replies
-
mm, for the spirv backend push constants should use the glsl430 layout by default. I assume you're using the glsl backend? The SPIRV backend is recommended, however you might want to try -fvk-use-gl-layout or -force-glsl-scalar-layout? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wondering if there's a way to set the layout of a struct. I have the following in my shader:
I believe that the
Lights
struct is using std140 after some debugging. I also found out on google that 140 is the default for things other than the storage buffers.I attempted to add
layout(std430)
on PushConstants definition:[vk::push_constant] layout(std430) PushConstants pcs
But that made no change, so I'm assuming it only applies to the
PushConstants
struct.Is there a way to set the
Lights
struct to be std430? I couldn't find anything online about itBeta Was this translation helpful? Give feedback.
All reactions