Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders-msl/frag/for-loop-init.frag

raw
1 #include <metal_stdlib>
2 #include <simd/simd.h>
3
4 using namespace metal;
5
6 struct main0_out
7 {
8 int FragColor [[color(0)]];
9 };
10
11 fragment main0_out main0()
12 {
13 main0_out out = {};
14 do
15 {
16 out.FragColor = 16;
17 for (int _143 = 0; _143 < 25; )
18 {
19 out.FragColor += 10;
20 _143++;
21 continue;
22 }
23 for (int _144 = 1; _144 < 30; )
24 {
25 out.FragColor += 11;
26 _144++;
27 continue;
28 }
29 int _145;
30 _145 = 0;
31 for (; _145 < 20; )
32 {
33 out.FragColor += 12;
34 _145++;
35 continue;
36 }
37 int _62 = _145 + 3;
38 out.FragColor += _62;
39 if (_62 == 40)
40 {
41 for (int _149 = 0; _149 < 40; )
42 {
43 out.FragColor += 13;
44 _149++;
45 continue;
46 }
47 break;
48 }
49 out.FragColor += _62;
50 int2 _146;
51 _146 = int2(0);
52 for (; _146.x < 10; )
53 {
54 out.FragColor += _146.y;
55 int2 _142 = _146;
56 _142.x = _146.x + 4;
57 _146 = _142;
58 continue;
59 }
60 for (int _148 = _62; _148 < 40; )
61 {
62 out.FragColor += _148;
63 _148++;
64 continue;
65 }
66 out.FragColor += _62;
67 break;
68 } while(false);
69 return out;
70 }
71