mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 19:40:06 +00:00
89400ea73e
Some layout qualifiers must not be on an object and had a TBD for testing them: early_fragment_tests, cw/ccw, points, point_mode, and fractional_even_spacing/fractional_odd_spacing/equal_spacing.
20 lines
354 B
GLSL
20 lines
354 B
GLSL
#version 450 core
|
|
|
|
in gl_PerVertex {
|
|
float gl_CullDistance[3];
|
|
} gl_in[];
|
|
|
|
out gl_PerVertex {
|
|
float gl_CullDistance[3];
|
|
};
|
|
|
|
layout(triangles) in;
|
|
|
|
void main()
|
|
{
|
|
gl_in[3].gl_Position; // ERROR, out of range
|
|
gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
|
|
}
|
|
|
|
layout(points) in float f[3]; // ERROR, must be standalone
|