xref: /aosp_15_r20/external/angle/third_party/glslang/src/Test/450.geom (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1#version 450 core
2
3in gl_PerVertex {
4    float gl_CullDistance[3];
5} gl_in[];
6
7out gl_PerVertex {
8    float gl_CullDistance[3];
9};
10
11layout(triangles) in;
12
13void main()
14{
15    gl_in[3].gl_Position; // ERROR, out of range
16    gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
17}
18
19layout(points) in float f[3];  // ERROR, must be standalone
20