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.
17 * Further, from the spec text:
19 * In particular, barrier() may not be called inside
20 * a switch statement, in either sub-statement of an if statement, inside a
21 * do, for, or while loop, or at any point after a return statement in the
26 #extension GL_ARB_tessellation_shader: require
27 layout(vertices = 3) out;
31 gl_out[gl_InvocationID].gl_Position = vec4(0.0);
38 gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 1.0);
39 gl_TessLevelInner = float[2](1.0, 1.0);