glBindBuffersBase - bind one or more buffer objects to a sequence of indexed buffer targets
Contents
C Specification
voidglBindBuffersBase(GLenumtarget,GLuintfirst,GLsizeicount,constGLuint*buffers);
Copyright
Copyright © 2013-2014 Khronos Group
[FIXME: source] 11/18/2024 GLBINDBUFFERSBASE(3G)
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 index 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():
for (i = 0; i < count; i++) {
if (buffers != NULL) {
glBindBufferBase(target, first + i, buffers[i]);
} else {
glBindBufferBase(target, first + i, 0);
}
}
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.
Name
glBindBuffersBase - bind one or more buffer objects to a sequence of indexed buffer targets
Notes
glBindBuffersBase is available only if the GL version is 4.4 or higher.
Parameters
target
Specify the target of the bind operation. target must be one of GL_ATOMIC_COUNTER_BUFFER,
GL_TRANSFORM_FEEDBACK_BUFFER, GL_UNIFORM_BUFFER or GL_SHADER_STORAGE_BUFFER.
index
Specify the index of the first binding point within the array specified by target.
count
Specify the number of contiguous binding points to which to bind buffers.
buffers
A pointer to an array of names of buffer objects to bind to the targets on the specified binding
point, or NULL.
See Also
glGenBuffers(), glDeleteBuffers(), glBindBuffer(), glBindBufferBase(), glBindBufferRange(),
glBindBuffersRange(), glMapBuffer(), glUnmapBuffer()
Version Support
┌───────────────────┬───────────────────────────────────────────────────────────────────────┐
│ │ OpenGLVersion │
├───────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
│ Function │ 2.0 │ 2.1 │ 3.0 │ 3.1 │ 3.2 │ 3.3 │ 4.0 │ 4.1 │ 4.2 │ 4.3 │ 4.4 │ 4.5 │
│ / │ │ │ │ │ │ │ │ │ │ │ │ │
│ Feature │ │ │ │ │ │ │ │ │ │ │ │ │
│ Name │ │ │ │ │ │ │ │ │ │ │ │ │
├───────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│ glBindBuffersBase │ - │ - │ - │ - │ - │ - │ - │ - │ - │ - │ ✔ │ ✔ │
└───────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
