Debian Codegraph @

third_party/spirv-cross/reference/shaders-no-opt/vert/pass-array-by-value.vert

raw
1 #version 310 es
2
3 layout(location = 0) in int Index1;
4 layout(location = 1) in int Index2;
5
6 vec4 consume_constant_arrays2(vec4 positions[4], vec4 positions2[4])
7 {
8 vec4 indexable[4] = positions;
9 vec4 indexable_1[4] = positions2;
10 return indexable[Index1] + indexable_1[Index2];
11 }
12
13 vec4 consume_constant_arrays(vec4 positions[4], vec4 positions2[4])
14 {
15 return consume_constant_arrays2(positions, positions2);
16 }
17
18 void main()
19 {
20 vec4 LUT2[4];
21 LUT2[0] = vec4(10.0);
22 LUT2[1] = vec4(11.0);
23 LUT2[2] = vec4(12.0);
24 LUT2[3] = vec4(13.0);
25 gl_Position = consume_constant_arrays(vec4[](vec4(0.0), vec4(1.0), vec4(2.0), vec4(3.0)), LUT2);
26 }
27