Restore r26245 and all tests and test results since 4/1:
[platform/upstream/glslang.git] / Test / 420_size_gl_in.geom
1 #version 420 core\r
2 \r
3 // testing input arrays without a gl_in[] block redeclaration, see 400.geom for with\r
4 \r
5 int i;\r
6 \r
7 layout(triangles) in;\r
8 in vec4 colorun[];\r
9 in vec4 color3[3];\r
10 \r
11 void foo()\r
12 {\r
13     gl_in.length();\r
14     gl_in[1].gl_Position;\r
15     gl_in.length();\r
16     gl_in[i].gl_Position;   // should be sized to 3 by 'triangles'\r
17 }\r
18 \r
19 in gl_PerVertex {  // ERROR, already used\r
20     vec4 gl_Position;\r
21 } gl_in[];\r