Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve std140 layout violations #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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.

Source/Core/ShaderConductor.cpp Outdated Show resolved Hide resolved
Source/Core/ShaderConductor.cpp Show resolved Hide resolved
@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants