1 # Section 2.11.2 (Program Objects) of the GLSL 1.50 spec says:
3 # "Linking will also fail if the program object contains objects to form a
4 # geometry shader (see section 2.12), and
5 # • the program contains no objects to form a vertex shader;
6 # • the input primitive type, output primitive type, or maximum output
7 # vertex count is not specified in any compiled geometry shader object;
8 # • the input primitive type, output primitive type, or maximum output
9 # vertex count is specified differently in multiple geometry shader
19 layout(triangle_strip, max_vertices = 3) out;
25 gl_Position = vertex[0];
36 color = vec4(0.0, 1.0, 0.0, 1.0);