You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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:
But it is not recognized by Graphicsfuzz unless it is transformed as the equivalent code:
The text was updated successfully, but these errors were encountered: