mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
cf0206c341
r26245: Remove "not yet complete" warning for versions 130 and 140, after tidying up a bit and adding tests. Token pasting is the only known missing feature, and gives its own message now on use. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@26226 e7fa87d3-cd2b-0410-9028-fcbf551c1848
22 lines
419 B
GLSL
22 lines
419 B
GLSL
#version 420 core
|
|
|
|
// testing input arrays without a gl_in[] block redeclaration, see 400.geom for with
|
|
|
|
int i;
|
|
|
|
layout(triangles) in;
|
|
in vec4 colorun[];
|
|
in vec4 color3[3];
|
|
|
|
void foo()
|
|
{
|
|
gl_in.length();
|
|
gl_in[1].gl_Position;
|
|
gl_in.length();
|
|
gl_in[i].gl_Position; // should be sized to 3 by 'triangles'
|
|
}
|
|
|
|
in gl_PerVertex { // ERROR, already used
|
|
vec4 gl_Position;
|
|
} gl_in[];
|