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=
"glDeleteSamplers">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>glDeleteSamplers
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glDeleteSamplers
</refname>
17 <refpurpose>delete named sampler objects
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glDeleteSamplers
</function></funcdef>
23 <paramdef>GLsizei
<parameter>n
</parameter></paramdef>
24 <paramdef>const GLuint *
<parameter>samplers
</parameter></paramdef>
28 <refsect1 id=
"parameters"><title>Parameters
</title>
31 <term><parameter>n
</parameter></term>
34 Specifies the number of sampler objects to be deleted.
39 <term><parameter>samplers
</parameter></term>
42 Specifies an array of sampler objects to be deleted.
48 <refsect1 id=
"description"><title>Description
</title>
50 <function>glDeleteSamplers
</function> deletes
<parameter>n
</parameter> sampler objects named by the elements of the array
<parameter>samplers
</parameter>.
51 After a sampler object is deleted, its name is again unused. If a sampler object that is currently bound to a sampler unit is deleted, it is as
52 though
<citerefentry><refentrytitle>glBindSampler
</refentrytitle></citerefentry> is called with unit set to the unit the sampler is bound to and
53 sampler zero. Unused names in samplers are silently ignored, as is the reserved name zero.
56 <refsect1 id=
"notes"><title>Notes
</title>
58 <function>glDeleteSamplers
</function> is available only if the GL version is
3.3 or higher.
61 <refsect1 id=
"errors"><title>Errors
</title>
63 <constant>GL_INVALID_VALUE
</constant> is generated if
<parameter>n
</parameter> is negative.
66 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
68 <citerefentry><refentrytitle>glIsSampler
</refentrytitle></citerefentry>
71 <refsect1 id=
"seealso"><title>See Also
</title>
73 <citerefentry><refentrytitle>glGenSamplers
</refentrytitle></citerefentry>,
74 <citerefentry><refentrytitle>glBindSampler
</refentrytitle></citerefentry>,
75 <citerefentry><refentrytitle>glDeleteSamplers
</refentrytitle></citerefentry>,
76 <citerefentry><refentrytitle>glIsSampler
</refentrytitle></citerefentry>
79 <refsect1 id=
"Copyright"><title>Copyright
</title>
81 Copyright
<trademark class=
"copyright"></trademark> 2010 Khronos Group.
82 This material may be distributed subject to the terms and conditions set forth in
83 the Open Publication License, v
1.0,
8 June
1999.
84 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.