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

glslangValidator does not output an error when gl_WorkGroupSize is used before layout(local_size*=...) #3856

Open
KonstantinSeurer opened this issue Feb 2, 2025 · 0 comments

Comments

@KonstantinSeurer
Copy link

The glsl spec states

It is a compile-time error to use gl_WorkGroupSize in a shader that does not declare a fixed
workgroup size, or before that shader has declared a fixed workgroup size, using local_size_x,
local_size_y, and local_size_z.

As of version 11:15.1.0, glslangValidator silently replaces the gl_WorkGroupSize with ivec3(1, 1, 1) instead of printing an error which can cause issues that are hard to debug.

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

No branches or pull requests

1 participant