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

Adding memory qualifiers support for buffers / shader storage blocks #1149

Closed
AaronGhost opened this issue Jul 15, 2021 · 0 comments · Fixed by #1150
Closed

Adding memory qualifiers support for buffers / shader storage blocks #1149

AaronGhost opened this issue Jul 15, 2021 · 0 comments · Fixed by #1150

Comments

@AaronGhost
Copy link
Contributor

It is impossible to add memory qualifiers to buffers (also described as shader storage blocks).

The specifications are described by the 4.9 Memory qualifiers in OpenGL ES3.1 and 4.10 Memory qualifiers in OpenGL ES3.2 / OpenGL 4.5. The specification of OpenGL 4.5 is a bit confusing: it first states that memory qualifiers can only be applied to image variables and then they also may be used with buffers and shader storages.

Glslangvalidator correctly recognizes code such as:

coherent buffer Block {
    readonly vec4 member1;
    vec4 member2;
};

But it is not recognized by Graphicsfuzz unless it is transformed as the equivalent code:

buffer Block {
    coherent readonly vec4 member1;
    coherent vec4 member2;
};
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 a pull request may close this issue.

1 participant