Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders/asm/frag/single-function-private-lut.asm.frag

raw
1 #version 460
2
3 struct myType
4 {
5 float data;
6 };
7
8 const myType _21[5] = myType[](myType(0.0), myType(1.0), myType(0.0), myType(1.0), myType(0.0));
9
10 layout(location = 0) out vec4 o_color;
11
12 void main()
13 {
14 if (_21[int(mod(gl_FragCoord.x, 4.0))].data > 0.0)
15 {
16 o_color = vec4(0.0, 1.0, 0.0, 1.0);
17 }
18 else
19 {
20 o_color = vec4(1.0, 0.0, 0.0, 1.0);
21 }
22 }
23