Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders/asm/frag/switch-label-shared-block.asm.frag

raw
1 #version 310 es
2 precision mediump float;
3 precision highp int;
4
5 layout(location = 0) flat in mediump int vIndex;
6 layout(location = 0) out float FragColor;
7
8 void main()
9 {
10 highp float _19;
11 switch (vIndex)
12 {
13 case 0:
14 case 2:
15 {
16 _19 = 1.0;
17 break;
18 }
19 default:
20 {
21 _19 = 3.0;
22 break;
23 }
24 case 8:
25 {
26 _19 = 8.0;
27 break;
28 }
29 }
30 FragColor = _19;
31 }
32