Built-in Variable Declarations
Vertex Shader Built-in Variables
in int gl_VertexID;in int gl_InstanceID;out gl_PerVertex { vec4 gl_Position; float gl_PointSize; float gl_ClipDistance[];};
Tessellation Control Shader Built-in Variables
in gl_PerVertex { vec4 gl_Position; float gl_PointSize; float gl_ClipDistance[];} gl_in[gl_MaxPatchVertices];in int gl_PatchVerticesIn;in int gl_PrimitiveID;in int gl_InvocationID;out gl_PerVertex { vec4 gl_Position; float gl_PointSize; float gl_ClipDistance[];} gl_out[];patch out float gl_TessLevelOuter[4];patch out float gl_TessLevelInner[2];
Tessellation Evaluation Shader Built-in Variables
in gl_PerVertex { vec4 ...
Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.