Thursday, September 22, 2016

API: glBindBufferBase .. bind a buffer object to an indexed buffer target .. OpenGLES API version 3.0+

_______________From opengl.org

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. target must be one of GL_ATOMIC_COUNTER_BUFFERGL_TRANSFORM_FEEDBACK_BUFFERGL_UNIFORM_BUFFER or GL_SHADER_STORAGE_BUFFER.
index
Specify the index of the binding point within the array specified by target.
buffer
The name of a buffer object to bind to the specified binding point.

Description

glBindBufferBase binds the buffer object buffer to the binding point at index index of the array of targets specified by target

Each target represents an indexed array of buffer binding points, as well as 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.

Notes

Calling glBindBufferBase is equivalent to calling glBindBufferRange with offset zero and size equal to the size of the buffer.
The GL_ATOMIC_COUNTER_BUFFER target is available only if the GL version is 4.2 or greater.
The GL_SHADER_STORAGE_BUFFER target is available only if the GL version is 4.3 or greater.




_________________From khronos.org

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. target must be either GL_TRANSFORM_FEEDBACK_BUFFER or GL_UNIFORM_BUFFER.
index
Specify the index of the binding point within the array specified by target.
buffer
The name of a buffer object to bind to the specified binding point.

Description

glBindBufferBase binds the buffer object buffer to the binding point at index index of the array of targets specified by target. Each target represents an indexed array of buffer binding points, as well as a single general binding point that can be used by other buffer manipulation functions such as glBindBuffer or glMapBufferRange. In addition to binding buffer to the indexed buffer binding target, glBindBufferBase also binds buffer to the generic buffer binding point specified by target.

Notes

Calling glBindBufferBase binds the entire buffer, even when the size of the buffer is changed after the binding is established. The starting offset is zero, and the amount of data that can be read from or written to the buffer is determined by the size of the bound buffer at the time the binding is used.









No comments:

Post a Comment