Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Conversation

@cpt-max
Copy link

@cpt-max cpt-max commented Aug 12, 2020

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.

@gongminmin
Copy link
Contributor

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.

@ghost
Copy link

ghost commented Sep 24, 2020

CLA assistant check
All CLA requirements met.

@cpt-max
Copy link
Author

cpt-max commented Sep 24, 2020

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 cpt-max requested a review from gongminmin September 24, 2020 12:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants