mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 12:00:05 +00:00
19 lines
265 B
Plaintext
19 lines
265 B
Plaintext
|
#version 450
|
||
|
|
||
|
layout(local_size_x_id = 18, local_size_z_id = 19) in;
|
||
|
layout(local_size_x = 32, local_size_y = 32) in;
|
||
|
|
||
|
buffer bn {
|
||
|
uint a;
|
||
|
} bi;
|
||
|
|
||
|
void foo(uvec3 wgs)
|
||
|
{
|
||
|
bi.a = wgs.x * gl_WorkGroupSize.y * wgs.z;
|
||
|
}
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
foo(gl_WorkGroupSize);
|
||
|
}
|