Debian Codegraph @

third_party/spirv-cross/shaders-hlsl/vert/struct-composite-decl.vert

raw
1 #version 310 es
2
3 layout(location = 0) in vec4 a;
4 layout(location = 1) in vec4 b;
5 layout(location = 2) in vec4 c;
6 layout(location = 3) in vec4 d;
7
8 struct VOut
9 {
10 vec4 a;
11 vec4 b;
12 vec4 c;
13 vec4 d;
14 };
15
16 layout(location = 0) out VOut vout;
17
18 void emit_result(VOut v)
19 {
20 vout = v;
21 }
22
23 void main()
24 {
25 emit_result(VOut(a, b, c, d));
26 }