1#version 450 core 2 3in gl_PerVertex { 4 float gl_CullDistance[3]; 5} gl_in[]; 6 7out gl_PerVertex { 8 float gl_CullDistance[3]; 9}; 10 11layout(triangles) in; 12 13void main() 14{ 15 gl_in[3].gl_Position; // ERROR, out of range 16 gl_CullDistance[2] = gl_in[1].gl_CullDistance[2]; 17} 18 19layout(points) in float f[3]; // ERROR, must be standalone 20