Debian Codegraph @

third_party/spirv-cross/shaders-msl/vert/interface-block-block-composites.vert

raw
1 #version 450
2 layout(location = 0) out mat3 vMatrix;
3 layout(location = 0) in mat3 Matrix;
4 layout(location = 4) in vec4 Pos;
5
6 layout(location = 4) out Vert
7 {
8 float arr[3];
9 mat3 wMatrix;
10 vec4 wTmp;
11 };
12
13 void main()
14 {
15 vMatrix = Matrix;
16 wMatrix = Matrix;
17 arr[0] = 1.0;
18 arr[1] = 2.0;
19 arr[2] = 3.0;
20 wTmp = Pos;
21 gl_Position = Pos;
22 }