1 # Test a single per-vertex input read in a TCS.
5 GL_ARB_tessellation_shader
20 [tessellation control shader]
22 #extension GL_ARB_tessellation_shader : require
27 layout(vertices = 1) out;
31 if (verts[gl_InvocationID].v == 42.0) {
32 gl_TessLevelInner[0] = 1.0;
33 gl_TessLevelInner[1] = 1.0;
35 gl_TessLevelOuter[0] = 1.0;
36 gl_TessLevelOuter[1] = 1.0;
37 gl_TessLevelOuter[2] = 1.0;
38 gl_TessLevelOuter[3] = 1.0;
40 gl_TessLevelInner[0] = 0.0;
41 gl_TessLevelInner[1] = 0.0;
43 gl_TessLevelOuter[0] = 0.0;
44 gl_TessLevelOuter[1] = 0.0;
45 gl_TessLevelOuter[2] = 0.0;
46 gl_TessLevelOuter[3] = 0.0;
50 [tessellation evaluation shader]
52 #extension GL_ARB_tessellation_shader : require
54 layout(quads, equal_spacing) in;
58 gl_Position = vec4(gl_TessCoord.xy * 2 - 1, 0, 1);
66 gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
70 patch parameter vertices 1
71 draw arrays GL_PATCHES 0 1
72 probe all rgba 0.0 1.0 0.0 1.0