1 # Test a set of simple pass-through tessellation shaders
5 GL_ARB_tessellation_shader
14 [tessellation control shader]
16 #extension GL_ARB_tessellation_shader : require
18 layout(vertices = 4) out;
22 gl_TessLevelInner[0] = 1.0;
23 gl_TessLevelInner[1] = 1.0;
24 gl_TessLevelOuter[0] = 1.0;
25 gl_TessLevelOuter[1] = 1.0;
26 gl_TessLevelOuter[2] = 1.0;
27 gl_TessLevelOuter[3] = 1.0;
30 [tessellation evaluation shader]
32 #extension GL_ARB_tessellation_shader : require
34 layout(quads, equal_spacing) in;
38 gl_Position = vec4(gl_TessCoord.x * 2 - 1, gl_TessCoord.y * 2 - 1, 0, 1);
46 gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
50 clear color 0.1 0.1 0.1 0.1
52 patch parameter vertices 4
53 draw arrays GL_PATCHES 0 4
54 probe all rgba 0.0 1.0 0.0 1.0