Debian Codegraph @

third_party/spirv-cross/reference/shaders-no-opt/asm/comp/access-chain-dominator-in-loop-body-2.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 int values[];
7 } _4;
8
9 void main()
10 {
11 int _17 = 0;
12 for (;;)
13 {
14 if (_17 < 100)
15 {
16 int _24 = _4.values[_17];
17 _4.values[_24] = _17;
18 int _26 = _24 + 1;
19 int _18 = _4.values[_26];
20 _4.values[_17] = _18;
21 _17 = _18;
22 continue;
23 }
24 else
25 {
26 break;
27 }
28 }
29 }
30