glslang
glslang copied to clipboard
gl_WorkGroupSize declaration issue.
Hi , The glslang should report the error about :
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.
And i noticed that the https://github.com/KhronosGroup/glslang/issues/2479 and https://github.com/KhronosGroup/glslang/pull/2549 had fixed the issue for gl_WorkGroupSize , but that doesn't works for each conponent of gl_WorkGroupSize. Thanks for any help this issue.
shader:
#version 310 es
layout(std430) buffer Output {
uint g_output;
};
void main() {
g_output = gl_WorkGroupSize.x;
}
``
ping @jeremy-lunarg .
This is next in my queue, but will be a little while until I can get to it.
@jeremy-lunarg thank you.