Built-in Constants

The constants are relatively self-explanatory and referred to as needed by other sections. The numbers below are the not necessarily the numbers you will see on your rendering platform. Rather, the numbers you will see on any particular platform will be at least as big as these.

const ivec3 gl_MaxComputeWorkGroupCount = { 65535, 65535,                                            65535 };const ivec3 gl_MaxComputeWorkGroupSize = { 1024, 1024,                                           64 };const int gl_MaxComputeUniformComponents = 1024;const int gl_MaxComputeTextureImageUnits = 16;const int gl_MaxComputeImageUniforms = 8;const int gl_MaxComputeAtomicCounters = 8;const int gl_MaxComputeAtomicCounterBuffers ...

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.