Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders/asm/frag/lut-promotion-initializer.asm.frag

raw
1 #version 310 es
2 precision mediump float;
3 precision highp int;
4
5 const float _46[16] = float[](1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0, 1.0, 2.0, 3.0, 4.0);
6 const vec4 _76[4] = vec4[](vec4(0.0), vec4(1.0), vec4(8.0), vec4(5.0));
7
8 layout(location = 0) out float FragColor;
9 layout(location = 0) flat in mediump int index;
10
11 void main()
12 {
13 vec4 foobar[4] = _76;
14 vec4 baz[4] = _76;
15 FragColor = _46[index];
16 if (index < 10)
17 {
18 FragColor += _46[index ^ 1];
19 }
20 else
21 {
22 FragColor += _46[index & 1];
23 }
24 bool _99 = index > 30;
25 if (_99)
26 {
27 FragColor += _76[index & 3].y;
28 }
29 else
30 {
31 FragColor += _76[index & 1].x;
32 }
33 if (_99)
34 {
35 foobar[1].z = 20.0;
36 }
37 mediump int _37 = index & 3;
38 FragColor += foobar[_37].z;
39 baz = vec4[](vec4(20.0), vec4(30.0), vec4(50.0), vec4(60.0));
40 FragColor += baz[_37].z;
41 }
42