
92 IDiscovering
Unit Invocation Scheme
Vertex Shader one invocation per input ver tex
Tess Control Shader one invocation per output vertex
Tess Eval Shader one invocation per post-tessellated vertex
Tabl e 6.1. Threading in the new OpenGL shading pipeline.
The function barrier() is different from memoryBarrier(); the latter was
introducted in OpenGL 4.2 and can be used from any shader unit.
Control shaders can access per-patch shared memory by qualifying a set of out
variables with the new patch keyword. If multiple invocations within a patch write
different values into the same patch variable, the results are undefined.
6.2.3 Inputs and Outputs
Table