1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"glVertexAttribBinding">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>glVertexAttribBinding
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glVertexAttribBinding
</refname>
17 <refpurpose>associate a vertex attribute and a vertex buffer binding
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glVertexAttribBinding
</function></funcdef>
23 <paramdef>GLuint
<parameter>attribindex
</parameter></paramdef>
24 <paramdef>GLuint
<parameter>bindingindex
</parameter></paramdef>
28 <refsect1 id=
"parameters"><title>Parameters
</title>
31 <term><parameter>attribindex
</parameter></term>
34 The index of the attribute to associate with a vertex buffer binding.
39 <term><parameter>bindingindex
</parameter></term>
42 The index of the vertex buffer binding with which to associate the generic vertex attribute.
48 <refsect1 id=
"description"><title>Description
</title>
50 <function>glVertexAttribBinding
</function>, establishes an association between the generic vertex
51 attribute whose index is given by
<parameter>attribindex
</parameter> and a vertex buffer binding
52 whose index is given by
<parameter>bindingindex
</parameter>.
<parameter>attribindex
</parameter>
53 must be less than the value of
<constant>GL_MAX_VERTEX_ATTRIBS
</constant> and
<parameter>bindingindex
</parameter>
54 must be less than the value of
<constant>GL_MAX_VERTEX_ATTRIB_BINDINGS
</constant>.
57 <refsect1 id=
"errors"><title>Errors
</title>
59 <constant>GL_INVALID_VALUE
</constant> is generated if
<parameter>attribindex
</parameter> is greater than
60 or equal to the value of
<constant>GL_MAX_VERTEX_ATTRIBS
</constant>.
63 <constant>GL_INVAILD_VALUE
</constant> is generated if
<parameter>bindingindex
</parameter> is greater than
64 or equal to the value of
<constant>GL_MAX_VERTEX_ATTRIB_BINDINGS
</constant>.
67 <constant>GL_INVALID_OPERATION
</constant> is generated if no vertex array object is bound.
70 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
72 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with arguments
<constant>GL_MAX_VERTEX_ATTRIB_BINDINGS
</constant>,
73 <constant>GL_VERTEX_BINDING_DIVISOR
</constant>.
76 <refsect1 id=
"seealso"><title>See Also
</title>
78 <citerefentry><refentrytitle>glBindVertexBuffer
</refentrytitle></citerefentry>,
79 <citerefentry><refentrytitle>glVertexAttribFormat
</refentrytitle></citerefentry>,
80 <citerefentry><refentrytitle>glVertexBindingDivisor
</refentrytitle></citerefentry>,
81 <citerefentry><refentrytitle>glVertexAttribPointer
</refentrytitle></citerefentry>.
84 <refsect1 id=
"Copyright"><title>Copyright
</title>
86 Copyright
<trademark class=
"copyright"></trademark> 2012 Khronos Group.
87 This material may be distributed subject to the terms and conditions set forth in
88 the Open Publication License, v
1.0,
8 June
1999.
89 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.