1 # Test a single per-vertex input read in a TCS.
5 GL_ARB_tessellation_shader
12 gl_Position = vec4(42.0);
16 [tessellation control shader]
18 #extension GL_ARB_tessellation_shader : require
20 layout(vertices = 1) out;
24 if (gl_in[gl_InvocationID].gl_Position.x == 42.0) {
25 gl_TessLevelInner[0] = 1.0;
26 gl_TessLevelInner[1] = 1.0;
28 gl_TessLevelOuter[0] = 1.0;
29 gl_TessLevelOuter[1] = 1.0;
30 gl_TessLevelOuter[2] = 1.0;
31 gl_TessLevelOuter[3] = 1.0;
33 gl_TessLevelInner[0] = 0.0;
34 gl_TessLevelInner[1] = 0.0;
36 gl_TessLevelOuter[0] = 0.0;
37 gl_TessLevelOuter[1] = 0.0;
38 gl_TessLevelOuter[2] = 0.0;
39 gl_TessLevelOuter[3] = 0.0;
43 [tessellation evaluation shader]
45 #extension GL_ARB_tessellation_shader : require
47 layout(quads, equal_spacing) in;
51 gl_Position = vec4(gl_TessCoord.xy * 2 - 1, 0, 1);
59 gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
63 patch parameter vertices 1
64 draw arrays GL_PATCHES 0 1
65 probe all rgba 0.0 1.0 0.0 1.0