Debian Codegraph @

third_party/spirv-cross/shaders-msl/tesc/load-control-point-array-of-struct.multi-patch.tesc

raw
1 #version 450
2
3 layout(vertices = 4) out;
4
5 struct VertexData
6 {
7 mat4 a;
8 vec4 b[2];
9 vec4 c;
10 };
11
12 layout(location = 0) in VertexData vInputs[gl_MaxPatchVertices];
13 layout(location = 0) out vec4 vOutputs[4];
14
15 void main()
16 {
17 VertexData tmp[gl_MaxPatchVertices] = vInputs;
18 VertexData tmp_single = vInputs[gl_InvocationID ^ 1];
19
20 vOutputs[gl_InvocationID] = tmp[gl_InvocationID].a[1] + tmp[gl_InvocationID].b[1] + tmp[gl_InvocationID].c + tmp_single.c;
21 }