1 # Check producing a single tessellated isoline doesn't give multiple lines
4 GL_ARB_tessellation_shader
13 [tessellation control shader]
14 #extension GL_ARB_tessellation_shader: require
15 layout(vertices = 2) out;
19 gl_TessLevelOuter[0] = 1.0;
20 gl_TessLevelOuter[1] = 4.0;
24 [tessellation evaluation shader]
25 #extension GL_ARB_tessellation_shader: require
26 layout(isolines, equal_spacing) in;
31 gl_Position = vec4(gl_TessCoord.xy * 2.0 - 1.0, 0.0, 1.0);
32 good = int(gl_TessCoord.y == 0.0);
42 gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
44 gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
48 clear color 0.0 1.0 0.0 1.0
50 patch parameter vertices 2
51 draw arrays GL_PATCHES 0 2
52 probe all rgba 0.0 1.0 0.0 1.0