1#version 450 core
2
3in gl_PerVertex {
4    float gl_CullDistance[3];
5} gl_in[gl_MaxPatchVertices];
6
7out gl_PerVertex {
8    float gl_CullDistance[3];
9} gl_out[4];
10
11void main()
12{
13    gl_out[gl_InvocationID].gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
14}
15
16layout(location = 4) out bName1 {
17    float f;
18    layout(location = 5) float g;
19} bInst1[2];
20layout(location = 6) out bName2 {
21    float f;
22    layout(location = 7) float g;  // ERROR, location on array
23} bInst2[2][3];
24