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=
"glInvalidateBufferSubData">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>glInvalidateBufferSubData
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glInvalidateBufferSubData
</refname>
17 <refpurpose>invalidate a region of a buffer object's data store
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glInvalidateBufferSubData
</function></funcdef>
23 <paramdef>GLuint
<parameter>buffer
</parameter></paramdef>
24 <paramdef>GLintptr
<parameter>offset
</parameter></paramdef>
25 <paramdef>GLsizeiptr
<parameter>length
</parameter></paramdef>
29 <refsect1 id=
"parameters"><title>Parameters
</title>
32 <term><parameter>buffer
</parameter></term>
35 The name of a buffer object, a subrange of whose data store to invalidate.
40 <term><parameter>offset
</parameter></term>
43 The offset within the buffer's data store of the start of the range to be invalidated.
48 <term><parameter>length
</parameter></term>
51 The length of the range within the buffer's data store to be invalidated.
57 <refsect1 id=
"description"><title>Description
</title>
59 <function>glInvalidateBufferSubData
</function> invalidates all or part of the
60 content of the data store of a buffer object. After invalidation, the content
61 of the specified range of the buffer's data store becomes undefined. The
62 start of the range is given by
<parameter>offset
</parameter> and its size
63 is given by
<parameter>length
</parameter>, both measured in basic machine units.
66 <refsect1 id=
"errors"><title>Errors
</title>
68 <constant>GL_INVALID_VALUE
</constant> is generated if
<parameter>offset
</parameter> or
69 <parameter>length
</parameter> is negative, or if
<parameter>offset
</parameter> +
70 <parameter>length
</parameter> is greater than the value of
<constant>GL_BUFFER_SIZE
</constant>
71 for
<parameter>buffer
</parameter>.
74 <constant>GL_INVALID_VALUE
</constant> is generated if
<parameter>buffer
</parameter> is not the
75 name of an existing buffer object.
78 <constant>GL_INVALID_OPERATION
</constant> is generated if any part of
<parameter>buffer
</parameter>
82 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
84 <citerefentry><refentrytitle>glGetBufferParameter
</refentrytitle></citerefentry> with argument
<constant>GL_BUFFER_SIZE
</constant>
87 <refsect1 id=
"seealso"><title>See Also
</title>
89 <citerefentry><refentrytitle>glInvalidateTexSubImage
</refentrytitle></citerefentry>,,
90 <citerefentry><refentrytitle>glInvalidateTexImage
</refentrytitle></citerefentry>,
91 <citerefentry><refentrytitle>glInvalidateBufferData
</refentrytitle></citerefentry>,
92 <citerefentry><refentrytitle>glInvalidateFramebuffer
</refentrytitle></citerefentry>,
93 <citerefentry><refentrytitle>glInvalidateSubFramebuffer
</refentrytitle></citerefentry>.
96 <refsect1 id=
"Copyright"><title>Copyright
</title>
98 Copyright
<trademark class=
"copyright"></trademark> 2012 Khronos Group.
99 This material may be distributed subject to the terms and conditions set forth in
100 the Open Publication License, v
1.0,
8 June
1999.
101 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.