GLBINDBUFFERSBASE(3G) | [FIXME: manual] | GLBINDBUFFERSBASE(3G) |
NAME
glBindBuffersBase - bind one or more buffer objects to a sequence of indexed buffer targets
C SPECIFICATION
void glBindBuffersBase(GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
PARAMETERS
target
first
count
buffers
DESCRIPTION
glBindBuffersBase binds a set of count buffer objects whose names are given in the array buffers to the count consecutive binding points starting from index first of the array of targets specified by target. If buffers is NULL then glBindBuffersBase unbinds any buffers that are currently bound to the referenced binding points. Assuming no errors are generated, it is equivalent to the following pseudo-code, which calls glBindBufferBase(), with the exception that the non-indexed target is not changed by glBindBuffersBase:
for (i = 0; i < count; i++) { if (buffers != NULL) { glBindBufferBase(target, first + i, buffers[i]); } else { glBindBufferBase(target, first + i, 0); } }
Each entry in buffers will be checked individually and if found to be invalid, the state for that buffer binding index will not be changed and an error will be generated. However, the state for other buffer binding indices referenced by the command will still be updated.
NOTES
glBindBuffersBase is available only if the GL version is 4.4 or higher.
ERRORS
GL_INVALID_ENUM is generated if target is not GL_ATOMIC_COUNTER_BUFFER, GL_TRANSFORM_FEEDBACK_BUFFER, GL_UNIFORM_BUFFER or GL_SHADER_STORAGE_BUFFER.
GL_INVALID_OPERATION is generated if first + count is greater than the number of target-specific indexed binding points.
GL_INVALID_OPERATION is generated if any value in buffers is not zero or the name of an existing buffer object.
VERSION SUPPORT
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 |
glBindBuffersBase | - | - | - | - | - | - | - | - | - | - | ✔ | ✔ |
SEE ALSO
glGenBuffers(), glDeleteBuffers(), glBindBuffer(), glBindBufferBase(), glBindBufferRange(), glBindBuffersRange(), glMapBuffer(), glUnmapBuffer()
COPYRIGHT
Copyright © 2013-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. https://opencontent.org/openpub/.
COPYRIGHT
Copyright © 2013-2014 Khronos Group
10/20/2024 | [FIXME: source] |