3 GL_ARB_tessellation_shader
7 #extension GL_ARB_gpu_shader_fp64: require
16 [tessellation control shader]
17 #extension GL_ARB_tessellation_shader: require
18 #extension GL_ARB_gpu_shader_fp64: require
19 layout(vertices = 3) out;
27 gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
28 gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 0.0);
29 gl_TessLevelInner = float[2](0.0, 0.0);
31 blk[gl_InvocationID].tcs_var0[0] = dvec4(0.0LF, 0.0LF, 0.0LF, 0.0LF);
32 blk[gl_InvocationID].tcs_var0[1] = dvec4(0.0LF, 0.0LF, 0.0LF, 0.0LF);
33 blk[gl_InvocationID].tcs_var0[2] = dvec4(0.0LF, 0.0LF, 0.0LF, 0.0LF);
34 blk[gl_InvocationID].tcs_var0[3] = dvec4(0.0LF, 0.0LF, 0.0LF, 0.0LF);
35 blk[gl_InvocationID].tcs_var0[index] = dvec4(0.0LF, 1.0LF, 0.0LF, 1.0LF);
39 [tessellation evaluation shader]
40 #extension GL_ARB_tessellation_shader: require
41 #extension GL_ARB_gpu_shader_fp64: require
52 gl_Position = gl_in[0].gl_Position * gl_TessCoord[0]
53 + gl_in[1].gl_Position * gl_TessCoord[1]
54 + gl_in[2].gl_Position * gl_TessCoord[2];
56 color = vec4(blk[0].tcs_var0[index]);
61 #extension GL_ARB_gpu_shader_fp64: require
79 clear color 0.1 0.1 0.1 0.1
81 patch parameter vertices 3
84 draw arrays GL_PATCHES 0 6
85 probe all rgba 0.0 1.0 0.0 1.0
88 draw arrays GL_PATCHES 0 6
89 probe all rgba 0.0 1.0 0.0 1.0
92 draw arrays GL_PATCHES 0 6
93 probe all rgba 0.0 1.0 0.0 1.0
96 draw arrays GL_PATCHES 0 6
97 probe all rgba 0.0 1.0 0.0 1.0