Get to know MDN better
The following types are used in WebGL interfaces.
These types are used within a WebGLRenderingContext.
| GLenum | unsigned long | Used for enums. See also the list of constants. |
| GLboolean | boolean | A boolean value. |
| GLbitfield | unsigned long | A bit field that stores multiple, logical bits. Used for example in WebGLRenderingContext.clear(). |
| GLbyte | byte | 8-bit twos complement signed integer. |
| GLshort | short | 16-bit twos complement signed integer. |
| GLint | long | 32-bit twos complement signed integer. |
| GLsizei | long | Used for sizes (e.g., width and height of the drawing buffer). |
| GLintptr | long long | Special type for pointer arithmetic. |
| GLsizeiptr | long long | Special type for pointer arithmetic. |
| GLubyte | octet | 8-bit unsigned integer. |
| GLushort | unsigned short | 16-bit unsigned integer. |
| GLuint | unsigned long | 32-bit unsigned integer. |
| GLfloat | unrestricted float | 32-bit IEEE floating point number. |
| GLclampf | unrestricted float | Clamped 32-bit IEEE floating point number. |
These types are used within a WebGL2RenderingContext. All WebGL 1 types are used as well.
| GLint64 | long long | Signed 64-bit integer number. |
These types are used within WebGL extensions.
| GLuint64EXT | long long | Unsigned 64-bit integer number. |
| WebGL # 5.1 |
| WebGL2 # 3.1 |
| EXT_disjoint_timer_query |
This page was last modified on Apr 3, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.