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 the layout size is less than the
8 # size of a sized input array in another compilation unit.
17 out vec4 vertex_to_gs;
21 vertex_to_gs = vertex;
28 layout(triangle_strip, max_vertices = 3) out;
30 void do_vertex(int i);
34 for (int i = 0; i < 2; i++)
41 in vec4 vertex_to_gs[3];
45 gl_Position = vertex_to_gs[i];
56 color = vec4(0.0, 1.0, 0.0, 1.0);