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};
10
11void main()
12{
13    gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
14}
15
16layout(equal_spacing)           in float f1[];  // ERROR, must be standalone
17layout(fractional_even_spacing) in float f2[];  // ERROR, must be standalone
18layout(fractional_odd_spacing)  in float f3[];  // ERROR, must be standalone
19layout(cw)                      in float f4[];  // ERROR, must be standalone
20layout(ccw)                     in float f5[];  // ERROR, must be standalone
21layout(point_mode)              in float f6[];  // ERROR, must be standalone
22