Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
[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 }