git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23698 e7fa87d3-cd2b-0410-9028-fcbf551c1848
24 lines
370 B
GLSL
24 lines
370 B
GLSL
#version 150 core
|
|
|
|
// testing input arrays without a gl_in[] block redeclaration, see 400.geom for with
|
|
|
|
int i;
|
|
|
|
void foo()
|
|
{
|
|
gl_in.length(); // ERROR
|
|
gl_in[1].gl_Position;
|
|
gl_in[i].gl_Position; // ERROR
|
|
}
|
|
|
|
layout(triangles) in;
|
|
|
|
in vec4 color3[3];
|
|
|
|
void foo3()
|
|
{
|
|
gl_in.length();
|
|
gl_in[i].gl_Position;
|
|
color3.length();
|
|
}
|