Debian Codegraph @

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

raw
1 #version 450
2 layout(location = 0) in mat3 vMatrix;
3 layout(location = 4) in Vert
4 {
5 mat3 wMatrix;
6 vec4 wTmp;
7 float arr[4];
8 };
9
10 layout(location = 0) out vec4 FragColor;
11
12 void main()
13 {
14 FragColor = wMatrix[0].xxyy + wTmp + vMatrix[1].yyzz;
15 for (int i = 0; i < 4; i++)
16 FragColor += arr[i];
17 }