Debian Codegraph @

third_party/spirv-cross/reference/shaders-no-opt/asm/comp/atomic-result-temporary.asm.comp

raw
1 #version 450
2 layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
3
4 layout(binding = 0, std430) buffer SSBO
5 {
6 uint count;
7 uint data[];
8 } _5;
9
10 void main()
11 {
12 uint _24 = atomicAdd(_5.count, 1u);
13 if (_24 < 1024u)
14 {
15 _5.data[_24] = gl_GlobalInvocationID.x;
16 }
17 }
18