GLVERTEXATTRIBDIVISO(3G)
β¨ NAME β¨
okay bestie, this is GLVERTEXATTRIBDIVISO(3G) from the [FIXME: manual] manual β the page for glVertexAttribDivisor, aka the function that modifies the rate at which generic vertex attributes advance during instanced rendering. π
π§Ύ C SPECIFICATION π§Ύ
void glVertexAttribDivisor(GLuint index, GLuint divisor);
π PARAMETERS π
indexβ specify the index of the generic vertex attribute.divisorβ specify the number of instances that will pass between updates of the generic attribute at slotindex.
π DESCRIPTION π
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.
π NOTES π
glVertexAttribDivisor is available only if the GL version is 3.3 or higher.
π ERRORS π
GL_INVALID_VALUE is generated if index is greater than or equal to the value of GL_MAX_VERTEX_ATTRIBS.
bestie, this is the βrespect the limitβ warning:indexcanβt be>= GL_MAX_VERTEX_ATTRIBS. no cap. π
π VERSION SUPPORT π
The Function / Feature Name is glVertexAttribDivisor, and the OpenGL Version support situation is literally this:
- OpenGL
2.0β- - OpenGL
2.1β- - OpenGL
3.0β- - OpenGL
3.1β- - OpenGL
3.2β- - OpenGL
3.3ββ - OpenGL
4.0ββ - OpenGL
4.1ββ - OpenGL
4.2ββ - OpenGL
4.3ββ - OpenGL
4.4ββ - OpenGL
4.5ββ
π SEE ALSO π
glVertexAttribPointer()glEnableVertexAttribArray()glDisableVertexAttribArray
π COPYRIGHT π
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. http://opencontent.org/openpub/.
π COPYRIGHT π
Copyright Β© 2010-2014 Khronos Group
Cute sign-off, bestie: source/version [FIXME: source], date 08/09/2021, manual GLVERTEXATTRIBDIVISO(3G). xoxo π
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms