index
divisor
glVertexAttribDivisor modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives in a single draw call. If divisor is zero, the attribute at slot index advances once per vertex. If divisor is non-zero, the attribute advances once per divisor instances of the set(s) of vertices being rendered. An attribute is referred to as instanced if its GL_VERTEX_ATTRIB_ARRAY_DIVISOR value is non-zero.
index must be less than the value of GL_MAX_VERTEX_ATTRIBS.
glVertexAttribDivisor is available only if the GL version is 3.3 or higher.
GL_INVALID_VALUE is generated if index is greater than or equal to the value of GL_MAX_VERTEX_ATTRIBS.
|
OpenGL Version
| |||||||||||
Function / Feature Name | 2.0 | 2.1 | 3.0 | 3.1 | 3.2 | 3.3 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 |
4.5
|
glVertexAttribDivisor | - | - | - | - | - | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
✔
|
glVertexAttribPointer(), glEnableVertexAttribArray(),
Copyright © 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. m[blue]http://opencontent.org/openpub/m[].