Debian Codegraph @

third_party/spirv-cross/reference/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 vec2 uv = gl_FragCoord.xy;
15 int index = int(mod(uv.x, 4.0));
16 myType elt = _21[index];
17 if (elt.data > 0.0)
18 {
19 o_color = vec4(0.0, 1.0, 0.0, 1.0);
20 }
21 else
22 {
23 o_color = vec4(1.0, 0.0, 0.0, 1.0);
24 }
25 }
26