Merge pull request #2908 from Biswa96/cmake-spirv-remap
[platform/upstream/glslang.git] / Test / negativeWorkGroupSize.comp
1 #version 460
2
3 void fn(){
4     uvec3 wgs = gl_WorkGroupSize; // error: fixed workgroup size has not been declared
5 }
6
7 layout(local_size_x = 64) in; // declare workgroup size
8
9 void main(){
10     fn();
11     uvec3 wgs = gl_WorkGroupSize; // valid
12 }