GLBINDBUFFERSRANGE(3G)

    .SH "NAME" glBindBuffersRange - bind ranges of one or more buffer objects to a sequence of indexed buffer targets
    .SH "C SPECIFICATION"

            .HP u void glBindBuffersRange(GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLintptr *sizes);

    .SH "PARAMETERS"

        .PP 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.

            .RE
            .PP index

                        Specify the index of the first binding point within the array specified by target.

                .RE
                .PP count

                            Specify the number of contiguous binding points to which to bind buffers.

                    .RE
                    .PP buffers

                                A pointer to an array of names of buffer objects to bind to the targets on the specified binding point, or NULL.

                        .RE
                            .PP offsets

                                        A pointer to an array of offsets into the corresponding buffer in buffers to bind, or NULL if buffers is NULL.

                                .RE
                                .PP sizes

                                            A pointer to an array of sizes of the corresponding buffer in buffers to bind, or NULL if buffers is NULL.

                                    .RE

                            .SH "DESCRIPTION"
                                .PP glBindBuffersRange binds a set of count ranges from 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. offsets specifies the address of an array containing count starting offsets within the buffers, and sizes specifies the address of an array of count sizes of the ranges. If buffers is NULL then offsets and sizes are ignored and glBindBuffersRange 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 glBindBufferRange(), with the exception that the non-indexed target is not changed by glBindBuffersRange:

                                for (i = 0; i < count; i++) {
                                    if (buffers != NULL) {
                                        glBindBufferRange(target, first + i, buffers[i], offsets[i], sizes[i]);
                                    } else {
                                        glBindBufferRange(target, first + i, 0);
                                    }
                                }

                                .PP Each entry in buffers, offsets, and sizes 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.

                            .SH "NOTES"
                                .PP glBindBuffersBase is available only if the GL version is 4.4 or higher.

                            .SH "ERRORS"
                                .PP 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.
                                .PP GL_INVALID_OPERATION is generated if first + count is greater than the number of target-specific indexed binding points.
                                .PP GL_INVALID_OPERATION is generated if any value in buffers is not zero or the name of an existing buffer object.
                                .PP GL_INVALID_VALUE is generated by if any value in offsets is less than zero or if any value in sizes is less than zero.
                                .PP GL_INVALID_VALUE is generated if any pair of values in offsets and sizes does not respectively satisfy the constraints described for those parameters for the specified target.

                            .SH "VERSION SUPPORT"
                                .TS allbox tab(:); l l l l l l l l l l l l l. T{ glBindBuffersRange T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}

                            .SH "SEE ALSO"
                                .PP glGenBuffers(), glDeleteBuffers(), glBindBuffer(), glBindBufferBase(), glBindBufferRange(), glBindBuffersRange(), glMapBuffer(), glUnmapBuffer()

                            .SH "COPYRIGHT"
                                .PP 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. http://opencontent.org/openpub/.

COPYRIGHT
Copyright © 2013-2014 Khronos Group