Commit | Line | Data |
---|---|---|
7faf1d71 AW |
1 | <?xml version="1.0" encoding="UTF-8"?>\r |
2 | <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r | |
3 | "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r | |
4 | <refentry id="textureSize">\r | |
5 | <refmeta>\r | |
6 | <refmetainfo>\r | |
7 | <copyright>\r | |
8 | <year>2011</year>\r | |
9 | <holder>Khronos Group</holder>\r | |
10 | </copyright>\r | |
11 | </refmetainfo>\r | |
12 | <refentrytitle>textureSize</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>textureSize</refname>\r | |
17 | <refpurpose>retrieve the dimensions of a level of a texture</refpurpose>\r | |
18 | </refnamediv>\r | |
19 | <refsynopsisdiv><title>Declaration</title>\r | |
20 | <funcsynopsis>\r | |
21 | <funcprototype>\r | |
22 | <funcdef>int <function>textureSize</function></funcdef>\r | |
23 | <paramdef>gsampler1D <parameter>sampler</parameter></paramdef>\r | |
24 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
25 | </funcprototype>\r | |
26 | <funcprototype>\r | |
27 | <funcdef>ivec2 <function>textureSize</function></funcdef>\r | |
28 | <paramdef>gsampler2D <parameter>sampler</parameter></paramdef>\r | |
29 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
30 | </funcprototype>\r | |
31 | <funcprototype>\r | |
32 | <funcdef>ivec3 <function>textureSize</function></funcdef>\r | |
33 | <paramdef>gsampler3D <parameter>sampler</parameter></paramdef>\r | |
34 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
35 | </funcprototype>\r | |
36 | <funcprototype>\r | |
37 | <funcdef>ivec2 <function>textureSize</function></funcdef>\r | |
38 | <paramdef>gsamplerCube <parameter>sampler</parameter></paramdef>\r | |
39 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
40 | </funcprototype>\r | |
41 | <funcprototype>\r | |
42 | <funcdef>int <function>textureSize</function></funcdef>\r | |
43 | <paramdef>sampler1DShadow <parameter>sampler</parameter></paramdef>\r | |
44 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
45 | </funcprototype>\r | |
46 | <funcprototype>\r | |
47 | <funcdef>ivec2 <function>textureSize</function></funcdef>\r | |
48 | <paramdef>sampler2DShadow <parameter>sampler</parameter></paramdef>\r | |
49 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
50 | </funcprototype>\r | |
51 | <funcprototype>\r | |
52 | <funcdef>ivec2 <function>textureSize</function></funcdef>\r | |
53 | <paramdef>samplerCubeShadow <parameter>sampler</parameter></paramdef>\r | |
54 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
55 | </funcprototype>\r | |
56 | <funcprototype>\r | |
57 | <funcdef>ivec3 <function>textureSize</function></funcdef>\r | |
58 | <paramdef>samplerCubeArray <parameter>sampler</parameter></paramdef>\r | |
59 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
60 | </funcprototype>\r | |
61 | <funcprototype>\r | |
62 | <funcdef>ivec3 <function>textureSize</function></funcdef>\r | |
63 | <paramdef>samplerCubeArrayShadow <parameter>sampler</parameter></paramdef>\r | |
64 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
65 | </funcprototype>\r | |
66 | <funcprototype>\r | |
67 | <funcdef>ivec2 <function>textureSize</function></funcdef>\r | |
68 | <paramdef>gsamplerRect <parameter>sampler</parameter></paramdef>\r | |
69 | </funcprototype>\r | |
70 | <funcprototype>\r | |
71 | <funcdef>ivec2 <function>textureSize</function></funcdef>\r | |
72 | <paramdef>gsamplerRectShadow <parameter>sampler</parameter></paramdef>\r | |
73 | </funcprototype>\r | |
74 | <funcprototype>\r | |
75 | <funcdef>ivec2 <function>textureSize</function></funcdef>\r | |
76 | <paramdef>gsampler1DArray <parameter>sampler</parameter></paramdef>\r | |
77 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
78 | </funcprototype>\r | |
79 | <funcprototype>\r | |
80 | <funcdef>ivec3 <function>textureSize</function></funcdef>\r | |
81 | <paramdef>gsampler2DArray <parameter>sampler</parameter></paramdef>\r | |
82 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
83 | </funcprototype> <funcprototype>\r | |
84 | <funcdef>ivec2 <function>textureSize</function></funcdef>\r | |
85 | <paramdef>sampler1DArrayShadow <parameter>sampler</parameter></paramdef>\r | |
86 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
87 | </funcprototype>\r | |
88 | <funcprototype>\r | |
89 | <funcdef>ivec3 <function>textureSize</function></funcdef>\r | |
90 | <paramdef>sampler2DArrayShadow <parameter>sampler</parameter></paramdef>\r | |
91 | <paramdef>int <parameter>lod</parameter></paramdef>\r | |
92 | </funcprototype>\r | |
93 | <funcprototype>\r | |
94 | <funcdef>int <function>textureSize</function></funcdef>\r | |
95 | <paramdef>gsamplerBuffer <parameter>sampler</parameter></paramdef>\r | |
96 | </funcprototype>\r | |
97 | <funcprototype>\r | |
98 | <funcdef>ivec2 <function>textureSize</function></funcdef>\r | |
99 | <paramdef>gsampler2DMS <parameter>sampler</parameter></paramdef>\r | |
100 | </funcprototype>\r | |
101 | <funcprototype>\r | |
102 | <funcdef>ivec3 <function>textureSize</function></funcdef>\r | |
103 | <paramdef>gsampler2DMSArray <parameter>sampler</parameter></paramdef>\r | |
104 | </funcprototype>\r | |
105 | </funcsynopsis>\r | |
106 | </refsynopsisdiv>\r | |
107 | <refsect1 id="parameters"><title>Parameters</title>\r | |
108 | <variablelist>\r | |
109 | <varlistentry>\r | |
110 | <term><parameter>sampler</parameter></term>\r | |
111 | <listitem>\r | |
112 | <para>\r | |
113 | Specifies the sampler to which the texture whose dimensions to retrieve is bound.\r | |
114 | </para>\r | |
115 | </listitem>\r | |
116 | </varlistentry>\r | |
117 | <varlistentry>\r | |
118 | <term><parameter>lod</parameter></term>\r | |
119 | <listitem>\r | |
120 | <para>\r | |
121 | Specifies the level of the texture for which to retrieve the dimensions.\r | |
122 | </para>\r | |
123 | </listitem>\r | |
124 | </varlistentry>\r | |
125 | </variablelist>\r | |
126 | </refsect1>\r | |
127 | <refsect1 id="description"><title>Description</title>\r | |
128 | <para>\r | |
129 | <function>textureSize</function> returns the dimensions of level <parameter>lod</parameter> (if present)\r | |
130 | of the texture bound to <parameter>sampler</parameter>. The components in the return value are filled in,\r | |
131 | in order, with the width, height and depth of the texture. For the array forms, the last component of the\r | |
132 | return value is the number of layers in the texture array.\r | |
133 | </para>\r | |
134 | </refsect1>\r | |
135 | <refsect1 id="versions"><title>Version Support</title>\r | |
136 | <informaltable frame="topbot">\r | |
137 | #VARTABLECOLS#\r | |
138 | <thead>\r | |
139 | #FUNCTABLEHEADER#\r | |
140 | <row>\r | |
141 | <entry>textureSize</entry>#newin13#\r | |
142 | </row>\r | |
143 | <row>\r | |
144 | <entry>textureSize (samplerBuffer, samplerRect{Shadow})</entry>#newin14#\r | |
145 | </row>\r | |
146 | <row>\r | |
147 | <entry>textureSize (samplerCube{Shadow})</entry>#newin40#\r | |
148 | </row>\r | |
149 | </thead>\r | |
150 | </tgroup>\r | |
151 | </informaltable>\r | |
152 | </refsect1>\r | |
153 | <refsect1 id="seealso"><title>See Also</title>\r | |
154 | <para>\r | |
155 | <citerefentry><refentrytitle>texelFetch</refentrytitle></citerefentry>,\r | |
156 | <citerefentry><refentrytitle>texelFetchOffset</refentrytitle></citerefentry>,\r | |
157 | <citerefentry><refentrytitle>texture</refentrytitle></citerefentry>,\r | |
158 | <citerefentry><refentrytitle>textureGather</refentrytitle></citerefentry>,\r | |
159 | <citerefentry><refentrytitle>textureGatherOffset</refentrytitle></citerefentry>,\r | |
160 | <citerefentry><refentrytitle>textureGatherOffsets</refentrytitle></citerefentry>,\r | |
161 | <citerefentry><refentrytitle>textureGrad</refentrytitle></citerefentry>,\r | |
162 | <citerefentry><refentrytitle>textureGradOffset</refentrytitle></citerefentry>,\r | |
163 | <citerefentry><refentrytitle>textureLod</refentrytitle></citerefentry>,\r | |
164 | <citerefentry><refentrytitle>textureLodOffset</refentrytitle></citerefentry>,\r | |
165 | <citerefentry><refentrytitle>textureOffset</refentrytitle></citerefentry>,\r | |
166 | <citerefentry><refentrytitle>textureProj</refentrytitle></citerefentry>,\r | |
167 | <citerefentry><refentrytitle>textureProjGrad</refentrytitle></citerefentry>,\r | |
168 | <citerefentry><refentrytitle>textureProjGradOffset</refentrytitle></citerefentry>,\r | |
169 | <citerefentry><refentrytitle>textureProjLod</refentrytitle></citerefentry>,\r | |
170 | <citerefentry><refentrytitle>textureProjLodOffset</refentrytitle></citerefentry>,\r | |
171 | <citerefentry><refentrytitle>textureProjOffset</refentrytitle></citerefentry>,\r | |
172 | <citerefentry><refentrytitle>textureQueryLod</refentrytitle></citerefentry>\r | |
173 | </para>\r | |
174 | </refsect1>\r | |
175 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
176 | <para>\r | |
177 | Copyright <trademark class="copyright"></trademark> 2011 Khronos Group. \r | |
178 | This material may be distributed subject to the terms and conditions set forth in \r | |
179 | the Open Publication License, v 1.0, 8 June 1999.\r | |
180 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
181 | </para>\r | |
182 | </refsect1>\r | |
183 | </refentry>\r |