Debian Codegraph @

third_party/spirv-cross/shaders/vert/return-array.vert

raw
1 #version 310 es
2
3 layout(location = 0) in vec4 vInput0;
4 layout(location = 1) in vec4 vInput1;
5
6 vec4[2] test()
7 {
8 return vec4[](vec4(10.0), vec4(20.0));
9 }
10
11 vec4[2] test2()
12 {
13 vec4 foobar[2];
14 foobar[0] = vInput0;
15 foobar[1] = vInput1;
16 return foobar;
17 }
18
19 void main()
20 {
21 gl_Position = test()[0] + test2()[1];
22 }