4 // require_extensions: GL_ARB_tessellation_shader
11 * As a result, we choose a heavy-handed approach in which we only allow
12 * calls to barrier() inside main(). Even within main, barrier() calls are
13 * forbidden inside loops (even those that turn out to have constant loop
14 * counts and don't execute "break" or "continue" statements), if
15 * statements, or after a return statement.
19 #extension GL_ARB_tessellation_shader: require
20 layout(vertices = 3) out;
27 gl_out[gl_InvocationID].gl_Position = vec4(0.0);
29 gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 1.0);
30 gl_TessLevelInner = float[2](1.0, 1.0);