4 // require_extensions: GL_ARB_shading_language_420pack GL_ARB_gpu_shader5
7 // From the ARB_shading_language_420pack spec:
9 // "More than one layout qualifier may appear in a single declaration."
11 // Section 4.3.8.1 (Input Layout Qualifiers) of the GLSL 1.50 spec says:
13 // "For inputs declared without an array size, including
14 // intrinsically declared inputs (i.e., gl_in), a layout must be
15 // declared before any use of the method length() or other array
16 // use requiring its size be known."
19 #extension GL_ARB_shading_language_420pack: enable
20 #extension GL_ARB_gpu_shader5 : enable
22 layout(invocations=4) layout(lines) in;
23 layout(triangle_strip, max_vertices=3) out;
27 uniform int foo[Color1.length() == 2 ? 1 : -1];