ShaderConductor icon indicating copy to clipboard operation
ShaderConductor copied to clipboard

Solve std140 layout violations

Open cpt-max opened this issue 5 years ago • 3 comments

I've been running into std140 layout violations when targeting GLSL. Adding the fvk-use-gl-layout option to DXC solved this. My implementation might not be exactly how you want to do this, but it seems to me that fvk-use-gl-layout should be included somehow.

cpt-max avatar Aug 12 '20 20:08 cpt-max

Is this a std140 only issue, or it also affect other layout? If the vk-use-gl-layout is turned on for all GLSL and ESSL, layouts other than std140 can be changed, too.

gongminmin avatar Sep 24 '20 08:09 gongminmin

CLA assistant check
All CLA requirements met.

ghost avatar Sep 24 '20 11:09 ghost

Is this a std140 only issue, or it also affect other layout?

I only tested this for std140, but according to this document it also applies to std430 when using storage buffers.

cpt-max avatar Sep 24 '20 11:09 cpt-max