Newer
Older
John Kessenich
committed
#version 450 core
in gl_PerVertex {
float gl_CullDistance[3];
} gl_in[];
out gl_PerVertex {
float gl_CullDistance[3];
};
John Kessenich
committed
layout(triangles) in;
John Kessenich
committed
void main()
{
John Kessenich
committed
gl_in[3].gl_Position; // ERROR, out of range
John Kessenich
committed
gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
}
layout(points) in float f[3]; // ERROR, must be standalone