mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-03 16:41:30 +00:00
18 lines
291 B
GLSL
18 lines
291 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];
|
|
}
|