Tessellation Control Shader/Defined Outputs: Difference between revisions
Jump to navigation
Jump to search
separate page for built-in outputs. |
(No difference)
|
Revision as of 23:33, 25 July 2013
Tessellation Control Shaders have the following predefined outputs.
out gl_PerVertex
{
vec4 gl_Position;
float gl_PointSize;
float gl_ClipDistance[];
} gl_out[];
The use of any of these in a TCS is completely optional. Indeed, their semantics will generally be of no practical value to the TCS. They have the same general meaning as for vertex shaders, but since a TCS must always be followed by an evaluation shader, the TCS never has to write to any of them.