1 # Not all shaders linked together are required to declare the output
2 # vertex count -- but those shaders which do not, must not call .length()
3 # or do anything else which requires the length of an unsized output array to
8 GL_ARB_tessellation_shader
15 [tessellation control shader]
16 #extension GL_ARB_tessellation_shader: require
17 layout(vertices = 3) out;
22 gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 0.0);
23 gl_TessLevelInner = float[2](0.0, 0.0);
28 [tessellation control shader]
29 #extension GL_ARB_tessellation_shader: require
32 gl_out[gl_InvocationID].gl_Position = vec4(0);
35 [tessellation evaluation shader]
36 #extension GL_ARB_tessellation_shader: require
38 layout (triangles) in;
41 gl_Position = vec4(0);
47 gl_FragColor = vec4(0);