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=
"glGenSamplers">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>glGenSamplers
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glGenSamplers
</refname>
17 <refpurpose>generate sampler object names
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glGenSamplers
</function></funcdef>
23 <paramdef>GLsizei
<parameter>n
</parameter></paramdef>
24 <paramdef>GLuint *
<parameter>samplers
</parameter></paramdef>
28 <!-- eqn: ignoring delim $$ -->
29 <refsect1 id=
"parameters"><title>Parameters
</title>
32 <term><parameter>n
</parameter></term>
35 Specifies the number of sampler object names to generate.
40 <term><parameter>samplers
</parameter></term>
43 Specifies an array in which the generated sampler object names are stored.
49 <refsect1 id=
"description"><title>Description
</title>
51 <function>glGenSamplers
</function> returns
<parameter>n
</parameter> sampler object names in
<parameter>samplers
</parameter>.
52 There is no guarantee that the names form a contiguous set of integers; however, it is guaranteed that none of the returned names
53 was in use immediately before the call to
<function>glGenSamplers
</function>.
56 Sampler object names returned by a call to
<function>glGenSamplers
</function> are not returned by subsequent calls, unless
57 they are first deleted with
<citerefentry><refentrytitle>glDeleteSamplers
</refentrytitle></citerefentry>.
60 The names returned in
<parameter>samplers
</parameter> are marked as used, for the purposes of
<function>glGenSamplers
</function> only,
61 but they acquire state and type only when they are first bound.
64 <refsect1 id=
"notes"><title>Notes
</title>
66 <function>glGenSamplers
</function> is available only if the GL version is
3.3 or higher.
69 <refsect1 id=
"errors"><title>Errors
</title>
71 <constant>GL_INVALID_VALUE
</constant> is generated if
<parameter>n
</parameter> is negative.
74 <refsect1 id=
"seealso"><title>See Also
</title>
76 <citerefentry><refentrytitle>glBindSampler
</refentrytitle></citerefentry>,
77 <citerefentry><refentrytitle>glIsSampler
</refentrytitle></citerefentry>,
78 <citerefentry><refentrytitle>glDeleteSamplers
</refentrytitle></citerefentry>
81 <refsect1 id=
"Copyright"><title>Copyright
</title>
83 Copyright
<trademark class=
"copyright"></trademark> 2010 Khronos Group.
84 This material may be distributed subject to the terms and conditions set forth in
85 the Open Publication License, v
1.0,
8 June
1999.
86 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.