1 # Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec says:
3 # It is a link-time error if not all provided sizes (sized input
4 # arrays and layout size) match across all geometry shaders in the
7 # This test exercises the case where one compilation unit provides a
8 # size via a layout declaration, and another provides a size
9 # implicitly by accessing a member of an input array using a constant.
18 out vec4 vertex_to_gs;
22 vertex_to_gs = vertex;
29 layout(triangle_strip, max_vertices = 3) out;
35 for (int i = 0; i < 2; i++)
42 in vec4 vertex_to_gs[];
46 gl_Position = vertex_to_gs[2];
57 color = vec4(0.0, 1.0, 0.0, 1.0);