GLBINDBUFFERBASE(3G)
okay bestie, buckle up: this is glBindBufferBase from the GLBINDBUFFERBASE(3G) manual β and yes, the header is literally doing [FIXME: manual], iconic placeholder behavior π
β¨
β¨ NAME β¨
glBindBufferBase β bind a buffer object to an indexed buffer target π
π§Ύ C SPECIFICATION π§Ύ
void glBindBufferBase(GLenum target, GLuint index, GLuint buffer);
π― PARAMETERS π―
targetβ Specify the target of the bind operation.targetmust be one ofGL_ATOMIC_COUNTER_BUFFER,GL_TRANSFORM_FEEDBACK_BUFFER,GL_UNIFORM_BUFFERorGL_SHADER_STORAGE_BUFFER. no random targets, bestie πindexβ Specify the index of the binding point within the array specified bytarget.bufferβ The name of a buffer object to bind to the specified binding point.
π DESCRIPTION π
So glBindBufferBase binds the buffer object buffer to the binding point at index index of the array of targets specified by target. stay with me, it slays β¨
Each target represents an indexed array of buffer binding points, plus a single general binding point that can be used by other buffer manipulation functions such as glBindBuffer() or glMapBuffer(). In addition to binding buffer to the indexed buffer binding target, glBindBufferBase also binds buffer to the generic buffer binding point specified by target. double duty, highkey iconic π«Ά
π NOTES π
- Calling
glBindBufferBaseis equivalent to callingglBindBufferRange()with offset zero and size equal to the size of the buffer. - The
GL_ATOMIC_COUNTER_BUFFERtarget is available only if the GL version is 4.2 or greater. - The
GL_SHADER_STORAGE_BUFFERtarget is available only if the GL version is 4.3 or greater.
π ERRORS π
GL_INVALID_ENUMis generated iftargetis notGL_ATOMIC_COUNTER_BUFFER,GL_TRANSFORM_FEEDBACK_BUFFER,GL_UNIFORM_BUFFERorGL_SHADER_STORAGE_BUFFER.GL_INVALID_VALUEis generated ifindexis greater than or equal to the number of target-specific indexed binding points.GL_INVALID_VALUEis generated ifbufferdoes not have an associated data store, or if the size of that store is zero.
π VERSION SUPPORT π
glBindBufferBase / Feature Name support by OpenGL Version:
2.0β-nope2.1β-still nope3.0ββ3.1ββ3.2ββ3.3ββ4.0ββ4.1ββ4.2ββ4.3ββ4.4ββ4.5ββ
short vibe check: 2.0 and 2.1 are a no, and 3.0 through 4.5 are a yes π
π SEE ALSO π
The SEE ALSO squad is: glGenBuffers(), glDeleteBuffers(), glBindBuffer(), glBindBufferRange(), glMapBuffer(), glUnmapBuffer(), β and yes, that trailing comma after glUnmapBuffer() is canon in the original, so we keep it π
Β©οΈ 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 (the encore) π
Copyright Β© 2010-2014 Khronos Group
source/version tag: [FIXME: source] Β· date: 08/09/2021 Β· manual: GLBINDBUFFERBASE(3G) β okay bye bestie, go bind those buffers responsibly π«Άβ¨π
π¦ 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