Debian Codegraph @

third_party/spirv-cross/reference/shaders/frag/constant-composites.frag

raw
1 #version 310 es
2 precision mediump float;
3 precision highp int;
4
5 const float _16[4] = float[](1.0, 4.0, 3.0, 2.0);
6
7 struct Foo
8 {
9 float a;
10 float b;
11 };
12
13 const Foo _28[2] = Foo[](Foo(10.0, 20.0), Foo(30.0, 40.0));
14
15 layout(location = 0) out vec4 FragColor;
16 layout(location = 0) flat in mediump int line;
17
18 void main()
19 {
20 FragColor = vec4(_16[line]);
21 FragColor += vec4(_28[line].a * _28[1 - line].a);
22 }
23