yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Arcady Goldmints-OrlovCheck for invalid usage of gl_WorkGroupSize components9c4f12c5

main
335 B13 linesraw
1#version 460
2
3void fn(){
4    uvec3 wgs = gl_WorkGroupSize; // error: fixed workgroup size has not been declared
5    uint foo = gl_WorkGroupSize.y; // error: can't access component of gl_WorkGroupSize either
6}
7
8layout(local_size_x = 64) in; // declare workgroup size
9
10void main(){
11    fn();
12    uvec3 wgs = gl_WorkGroupSize; // valid
13}