1 # Test a very simple set of tess shaders which
2 # do not require per-vertex data.
6 GL_ARB_tessellation_shader
8 [vertex shader passthrough]
10 [tessellation control shader]
12 #extension GL_ARB_tessellation_shader : require
14 layout(vertices = 1) out;
18 gl_TessLevelInner[0] = 1.0;
19 gl_TessLevelInner[1] = 1.0;
21 gl_TessLevelOuter[0] = 1.0;
22 gl_TessLevelOuter[1] = 1.0;
23 gl_TessLevelOuter[2] = 1.0;
24 gl_TessLevelOuter[3] = 1.0;
27 [tessellation evaluation shader]
29 #extension GL_ARB_tessellation_shader : require
31 layout(quads, equal_spacing) in;
35 gl_Position = vec4(gl_TessCoord.xy * 2 - 1, 0, 1);
43 gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
47 patch parameter vertices 1
48 draw arrays GL_PATCHES 0 1
49 probe all rgba 0.0 1.0 0.0 1.0