4 // require_extensions: GL_ARB_shading_language_420pack GL_ARB_tessellation_shader
8 // From the ARB_shading_language_420pack spec:
10 // "More than one layout qualifier may appear in a single declaration. If
11 // the same layout-qualifier-name occurs in multiple layout qualifiers for
12 // the same declaration, the last one overrides the former ones."
14 // From the ARB_tessellation_shader spec:
16 // "All tessellation control shader layout declarations in a program must
17 // specify the same output patch vertex count."
20 #extension GL_ARB_shading_language_420pack: enable
21 #extension GL_ARB_tessellation_shader: require
23 layout(vertices = 4) layout(vertices = 3) out;
24 layout(vertices = 3) out;
27 gl_out[gl_InvocationID].gl_Position = vec4(0.0);
28 gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 1.0);
29 gl_TessLevelInner = float[2](1.0, 1.0);