Debian Codegraph @

third_party/spirv-cross/reference/shaders/frag/loop-dominator-and-switch-default.frag

raw
1 #version 310 es
2 precision mediump float;
3 precision highp int;
4
5 layout(location = 0) out vec4 fragColor;
6
7 void main()
8 {
9 vec4 f4;
10 mediump int c = int(f4.x);
11 for (mediump int j = 0; j < c; j++)
12 {
13 switch (c)
14 {
15 case 0:
16 {
17 f4.y = 0.0;
18 break;
19 }
20 case 1:
21 {
22 f4.y = 1.0;
23 break;
24 }
25 default:
26 {
27 mediump int i = 0;
28 for (;;)
29 {
30 mediump int _48 = i;
31 mediump int _50 = _48 + 1;
32 i = _50;
33 if (_48 < c)
34 {
35 f4.y += 0.5;
36 continue;
37 }
38 else
39 {
40 break;
41 }
42 }
43 continue;
44 }
45 }
46 f4.y += 0.5;
47 }
48 fragColor = f4;
49 }
50