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=
"textureQueryLevels">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>textureQueryLevels
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>textureQueryLevels
</refname>
17 <refpurpose>compute the number of accessible mipmap levels of a texture
</refpurpose>
19 <refsynopsisdiv><title>Declaration
</title>
22 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
23 <paramdef>gsampler1D
<parameter>sampler
</parameter></paramdef>
26 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
27 <paramdef>gsampler2D
<parameter>sampler
</parameter></paramdef>
30 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
31 <paramdef>gsampler3D
<parameter>sampler
</parameter></paramdef>
34 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
35 <paramdef>gsamplerCube
<parameter>sampler
</parameter></paramdef>
38 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
39 <paramdef>gsampler1DArray
<parameter>sampler
</parameter></paramdef>
42 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
43 <paramdef>gsampler2DDArray
<parameter>sampler
</parameter></paramdef>
46 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
47 <paramdef>gsamplerCubeArray
<parameter>sampler
</parameter></paramdef>
50 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
51 <paramdef>gsampler1DShadow
<parameter>sampler
</parameter></paramdef>
54 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
55 <paramdef>gsampler2DShadow
<parameter>sampler
</parameter></paramdef>
58 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
59 <paramdef>gsamplerCubeShadow
<parameter>sampler
</parameter></paramdef>
62 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
63 <paramdef>gsampler1DArrayShadow
<parameter>sampler
</parameter></paramdef>
66 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
67 <paramdef>gsampler2DArrayShadow
<parameter>sampler
</parameter></paramdef>
70 <funcdef>vec2
<function>textureQueryLevels
</function></funcdef>
71 <paramdef>gsamplerCubeArrayShadow
<parameter>sampler
</parameter></paramdef>
75 <refsect1 id=
"parameters"><title>Parameters
</title>
78 <term><parameter>sampler
</parameter></term>
81 Specifies the sampler to which the texture whose mipmap level count will be queried is bound.
87 <refsect1 id=
"description"><title>Description
</title>
89 <function>textureQueryLevels
</function> returns the number of accessible mipmap levels
90 are in the texture associated with
<parameter>sampler
</parameter>.
93 If called on an incomplete texture, or if no texture is associated with
<parameter>sampler
</parameter>, zero is returned.
96 <refsect1 id=
"versions"><title>Version Support
</title>
97 <informaltable frame=
"topbot">
102 <entry>textureQueryLevels
</entry>#newin43#
108 <refsect1 id=
"seealso"><title>See Also
</title>
110 <citerefentry><refentrytitle>texelFetch
</refentrytitle></citerefentry>,
111 <citerefentry><refentrytitle>texelFetchOffset
</refentrytitle></citerefentry>,
112 <citerefentry><refentrytitle>texture
</refentrytitle></citerefentry>,
113 <citerefentry><refentrytitle>textureGather
</refentrytitle></citerefentry>,
114 <citerefentry><refentrytitle>textureGatherOffset
</refentrytitle></citerefentry>,
115 <citerefentry><refentrytitle>textureGatherOffsets
</refentrytitle></citerefentry>,
116 <citerefentry><refentrytitle>textureGrad
</refentrytitle></citerefentry>,
117 <citerefentry><refentrytitle>textureGradOffset
</refentrytitle></citerefentry>,
118 <citerefentry><refentrytitle>textureLod
</refentrytitle></citerefentry>,
119 <citerefentry><refentrytitle>textureLodOffset
</refentrytitle></citerefentry>,
120 <citerefentry><refentrytitle>textureOffset
</refentrytitle></citerefentry>,
121 <citerefentry><refentrytitle>textureProj
</refentrytitle></citerefentry>,
122 <citerefentry><refentrytitle>textureProjGrad
</refentrytitle></citerefentry>,
123 <citerefentry><refentrytitle>textureProjGradOffset
</refentrytitle></citerefentry>,
124 <citerefentry><refentrytitle>textureProjLod
</refentrytitle></citerefentry>,
125 <citerefentry><refentrytitle>textureProjLodOffset
</refentrytitle></citerefentry>,
126 <citerefentry><refentrytitle>textureProjOffset
</refentrytitle></citerefentry>,
127 <citerefentry><refentrytitle>textureSize
</refentrytitle></citerefentry>
130 <refsect1 id=
"Copyright"><title>Copyright
</title>
132 Copyright
<trademark class=
"copyright"></trademark> 2012 Khronos Group.
133 This material may be distributed subject to the terms and conditions set forth in
134 the Open Publication License, v
1.0,
8 June
1999.
135 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.