Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / 450.geom
1 #version 450 core\r
2 \r
3 in gl_PerVertex {\r
4     float gl_CullDistance[3];\r
5 } gl_in[];\r
6 \r
7 out gl_PerVertex {\r
8     float gl_CullDistance[3];\r
9 };\r
10 \r
11 layout(triangles) in;\r
12 \r
13 void main()\r
14 {\r
15     gl_in[3].gl_Position; // ERROR, out of range\r
16     gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];\r
17 }\r
18 \r
19 layout(points) in float f[3];  // ERROR, must be standalone\r