'\" t .\" Title: glBindBufferRange .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: 05/21/2015 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "GLBINDBUFFERRANGE" "3G" "05/21/2015" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" glBindBufferRange \- bind a range within a buffer object to an indexed buffer target .SH "C SPECIFICATION" .HP \w'void\ glBindBufferRange('u .BI "void glBindBufferRange(GLenum" "target" ", GLuint" "index" ", GLuint" "buffer" ", GLintptr" "offset" ", GLsizeiptr" "size" ");" .SH "PARAMETERS" .PP \fItarget\fR .RS 4 Specify the target of the bind operation\&. \fItarget\fR must be one of \fBGL_ATOMIC_COUNTER_BUFFER\fR, \fBGL_TRANSFORM_FEEDBACK_BUFFER\fR, \fBGL_UNIFORM_BUFFER\fR, or \fBGL_SHADER_STORAGE_BUFFER\fR\&. .RE .PP \fIindex\fR .RS 4 Specify the index of the binding point within the array specified by \fItarget\fR\&. .RE .PP \fIbuffer\fR .RS 4 The name of a buffer object to bind to the specified binding point\&. .RE .PP \fIoffset\fR .RS 4 The starting offset in basic machine units into the buffer object \fIbuffer\fR\&. .RE .PP \fIsize\fR .RS 4 The amount of data in machine units that can be read from the buffer object while used as an indexed target\&. .RE .SH "DESCRIPTION" .PP \fBglBindBufferRange\fR binds a range the buffer object \fIbuffer\fR represented by \fIoffset\fR and \fIsize\fR to the binding point at index \fIindex\fR of the array of targets specified by \fItarget\fR\&. Each \fItarget\fR 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 \fBglBindBuffer\fR() or \fBglMapBuffer\fR()\&. In addition to binding a range of \fIbuffer\fR to the indexed buffer binding target, \fBglBindBufferRange\fR also binds the range to the generic buffer binding point specified by \fItarget\fR\&. .PP \fIoffset\fR specifies the offset in basic machine units into the buffer object \fIbuffer\fR and \fIsize\fR specifies the amount of data that can be read from the buffer object while used as an indexed target\&. .SH "NOTES" .PP The \fBGL_ATOMIC_COUNTER_BUFFER\fR target is available only if the GL version is 4\&.2 or greater\&. .PP The \fBGL_SHADER_STORAGE_BUFFER\fR target is available only if the GL version is 4\&.3 or greater\&. .SH "ERRORS" .PP \fBGL_INVALID_ENUM\fR is generated if \fItarget\fR is not one of \fBGL_ATOMIC_COUNTER_BUFFER\fR, \fBGL_TRANSFORM_FEEDBACK_BUFFER\fR, \fBGL_UNIFORM_BUFFER\fR or \fBGL_SHADER_STORAGE_BUFFER\fR\&. .PP \fBGL_INVALID_VALUE\fR is generated if \fIindex\fR is greater than or equal to the number of \fItarget\fR\-specific indexed binding points\&. .PP \fBGL_INVALID_VALUE\fR is generated if \fIsize\fR is less than or equal to zero, or if \fIoffset\fR + \fIsize\fR is greater than the value of \fBGL_BUFFER_SIZE\fR\&. .PP Additional errors may be generated if \fIoffset\fR violates any \fItarget\fR\-specific alignmemt restrictions\&. .SH "VERSION SUPPORT" .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ \fBOpenGL Version\fR T} T{ \fBFunction / Feature Name\fR T}:T{ \fB2\&.0\fR T}:T{ \fB2\&.1\fR T}:T{ \fB3\&.0\fR T}:T{ \fB3\&.1\fR T}:T{ \fB3\&.2\fR T}:T{ \fB3\&.3\fR T}:T{ \fB4\&.0\fR T}:T{ \fB4\&.1\fR T}:T{ \fB4\&.2\fR T}:T{ \fB4\&.3\fR T}:T{ \fB4\&.4\fR T}:T{ \fB4\&.5\fR T} .T& l c c c c c c c c c c c c. T{ \fBglBindBufferRange\fR 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} .TE .sp .SH "SEE ALSO" .PP \fBglGenBuffers\fR(), \fBglDeleteBuffers\fR(), \fBglBindBuffer\fR(), \fBglBindBufferBase\fR(), \fBglMapBuffer\fR(), \fBglUnmapBuffer\fR(), .SH "COPYRIGHT" .PP Copyright \(co 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\&. \m[blue]\fBhttp://opencontent\&.org/openpub/\fR\m[]\&. .SH "COPYRIGHT" .br Copyright \(co 2010-2014 Khronos Group .br