1 # Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec says:
3 # At least one geometry shader (compilation unit) in a program must
4 # declare an input layout, and all geometry shader input layout
5 # declarations in a program must declare the same layout. It is not
6 # required that all geometry shaders in a program declare an input
9 # This test verifies that a link error occurs if no compilation unit
10 # declares an input layout.
19 out vec4 vertex_to_gs;
23 vertex_to_gs = vertex;
29 layout(triangle_strip, max_vertices = 3) out;
31 void do_vertex(int i);
35 for (int i = 0; i < 3; i++)
42 in vec4 vertex_to_gs[3];
46 gl_Position = vertex_to_gs[i];
57 color = vec4(0.0, 1.0, 0.0, 1.0);