summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/420_size_gl_in.geom
blob: 0fc1cd96ca32ffd74cf363a6ead93da09f10fee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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[];