John Kessenich | f3e2a89 | 2013-12-13 18:38:43 +0000 | [diff] [blame] | 1 | #version 420 core |
2 | |||||
3 | // testing input arrays without a gl_in[] block redeclaration, see 400.geom for with | ||||
4 | |||||
5 | int i; | ||||
6 | |||||
7 | layout(triangles) in; | ||||
8 | in vec4 colorun[]; | ||||
9 | in vec4 color3[3]; | ||||
10 | |||||
11 | void foo() | ||||
12 | { | ||||
13 | gl_in.length(); | ||||
14 | gl_in[1].gl_Position; | ||||
15 | gl_in.length(); | ||||
16 | gl_in[i].gl_Position; | ||||
17 | } | ||||
18 | |||||
19 | in gl_PerVertex { // ERROR, already used | ||||
20 | vec4 gl_Position; | ||||
21 | } gl_in[]; |