1 # Test a very simple set of tess shaders which
2 # do not require per-vertex data. We have a pair
3 # of invocations, which is the easiest case for i965.
7 GL_ARB_tessellation_shader
9 [vertex shader passthrough]
11 [tessellation control shader]
13 #extension GL_ARB_tessellation_shader : require
15 layout(vertices = 2) out;
19 gl_TessLevelInner[0] = 1.0;
20 gl_TessLevelInner[1] = 1.0;
22 gl_TessLevelOuter[0] = 1.0;
23 gl_TessLevelOuter[1] = 1.0;
24 gl_TessLevelOuter[2] = 1.0;
25 gl_TessLevelOuter[3] = 1.0;
28 [tessellation evaluation shader]
30 #extension GL_ARB_tessellation_shader : require
32 layout(quads, equal_spacing) in;
36 gl_Position = vec4(gl_TessCoord.xy * 2 - 1, 0, 1);
44 gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
48 patch parameter vertices 1
49 draw arrays GL_PATCHES 0 1
50 probe all rgba 0.0 1.0 0.0 1.0