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 two compilation units
10 # declare conflicting layouts.
19 out vec4 vertex_to_gs;
23 vertex_to_gs = vertex;
30 layout(triangle_strip, max_vertices = 3) out;
32 void do_vertex(int i);
36 for (int i = 0; i < 2; i++)
45 in vec4 vertex_to_gs[3];
49 gl_Position = vertex_to_gs[i];
60 color = vec4(0.0, 1.0, 0.0, 1.0);