Debian Codegraph @

third_party/spirv-cross/reference/shaders-no-opt/asm/comp/atomic-load-store.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 a;
7 uint b;
8 } _5;
9
10 void main()
11 {
12 uint _20 = atomicAdd(_5.b, 0u);
13 uint c = _20;
14 atomicExchange(_5.a, c);
15 }
16