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="glTexStorage3DMultisample">\r | |
5 | <refmeta>\r | |
6 | <refmetainfo>\r | |
7 | <copyright>\r | |
8 | <year>2012</year>\r | |
9 | <holder>Khronos Group</holder>\r | |
10 | </copyright>\r | |
11 | </refmetainfo>\r | |
12 | <refentrytitle>glTexStorage3DMultisample</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>glTexStorage3DMultisample</refname>\r | |
17 | <refpurpose>specify storage for a two-dimensional multisample array texture</refpurpose>\r | |
18 | </refnamediv>\r | |
19 | <refsynopsisdiv><title>C Specification</title>\r | |
20 | <funcsynopsis>\r | |
21 | <funcprototype>\r | |
22 | <funcdef>void <function>glTexStorage3DMultisample</function></funcdef>\r | |
23 | <paramdef>GLenum <parameter>target</parameter></paramdef>\r | |
24 | <paramdef>GLsizei <parameter>samples</parameter></paramdef>\r | |
25 | <paramdef>GLenum <parameter>internalformat</parameter></paramdef>\r | |
26 | <paramdef>GLsizei <parameter>width</parameter></paramdef>\r | |
27 | <paramdef>GLsizei <parameter>height</parameter></paramdef>\r | |
28 | <paramdef>GLsizei <parameter>depth</parameter></paramdef>\r | |
29 | <paramdef>GLboolean <parameter>fixedsamplelocations</parameter></paramdef>\r | |
30 | </funcprototype>\r | |
31 | </funcsynopsis>\r | |
32 | </refsynopsisdiv>\r | |
33 | <refsect1 id="parameters"><title>Parameters</title>\r | |
34 | <variablelist>\r | |
35 | <varlistentry>\r | |
36 | <term><parameter>target</parameter></term>\r | |
37 | <listitem>\r | |
38 | <para>\r | |
39 | Specify the target of the operation. <parameter>target</parameter> must be\r | |
40 | <constant>GL_TEXTURE_2D_MULTISAMPLE_ARRAY</constant> or <constant>GL_PROXY_TEXTURE_2D_MULTISAMPLE_MULTISAMPLE</constant>.\r | |
41 | </para>\r | |
42 | </listitem>\r | |
43 | </varlistentry>\r | |
44 | <varlistentry>\r | |
45 | <term><parameter>samples</parameter></term>\r | |
46 | <listitem>\r | |
47 | <para>\r | |
48 | Specify the number of samples in the texture.\r | |
49 | </para>\r | |
50 | </listitem>\r | |
51 | </varlistentry>\r | |
52 | <varlistentry>\r | |
53 | <term><parameter>internalformat</parameter></term>\r | |
54 | <listitem>\r | |
55 | <para>\r | |
56 | Specifies the sized internal format to be used to store texture image data.\r | |
57 | </para>\r | |
58 | </listitem>\r | |
59 | </varlistentry>\r | |
60 | <varlistentry>\r | |
61 | <term><parameter>width</parameter></term>\r | |
62 | <listitem>\r | |
63 | <para>\r | |
64 | Specifies the width of the texture, in texels.\r | |
65 | </para>\r | |
66 | </listitem>\r | |
67 | </varlistentry>\r | |
68 | <varlistentry>\r | |
69 | <term><parameter>height</parameter></term>\r | |
70 | <listitem>\r | |
71 | <para>\r | |
72 | Specifies the height of the texture, in texels.\r | |
73 | </para>\r | |
74 | </listitem>\r | |
75 | </varlistentry>\r | |
76 | <varlistentry>\r | |
77 | <term><parameter>depth</parameter></term>\r | |
78 | <listitem>\r | |
79 | <para>\r | |
80 | Specifies the depth of the texture, in layers.\r | |
81 | </para>\r | |
82 | </listitem>\r | |
83 | </varlistentry>\r | |
84 | <varlistentry>\r | |
85 | <term><parameter>fixedsamplelocations</parameter></term>\r | |
86 | <listitem>\r | |
87 | <para>\r | |
88 | Specifies whether the image will use identical sample locations and the same number of samples for all texels in the image, and the sample locations will not\r | |
89 | depend on the internal format or size of the image.\r | |
90 | </para>\r | |
91 | </listitem>\r | |
92 | </varlistentry>\r | |
93 | </variablelist>\r | |
94 | </refsect1>\r | |
95 | <refsect1 id="description"><title>Description</title>\r | |
96 | <para>\r | |
97 | <function>glTexStorage3DMultisample</function> specifies the storage requirements for\r | |
98 | a two-dimensional multisample array texture. Once a texture is specified with this\r | |
99 | command, its format and dimensions become immutable unless it is a proxy\r | |
100 | texture. The contents of the image may still be modified, however, its storage requirements\r | |
101 | may not change. Such a texture is referred to as an <emphasis>immutable-format</emphasis>\r | |
102 | texture.\r | |
103 | </para>\r | |
104 | <para>\r | |
105 | <parameter>samples</parameter> specifies the number of samples to be used for the texture\r | |
106 | and must be greater than zero and less than or equal to the value of <constant>GL_MAX_SAMPLES</constant>.\r | |
107 | <parameter>internalformat</parameter> must be a color-renderable, depth-renderable, or stencil-renderable format.\r | |
108 | <parameter>width</parameter> and <parameter>height</parameter> specify the width and height,\r | |
109 | respectively, of the texture and <parameter>depth</parameter> specifies the depth (or the number of layers)\r | |
110 | of the texture. If <parameter>fixedsamplelocations</parameter> is <constant>GL_TRUE</constant>,\r | |
111 | the image will use identical sample locations and the same number of samples for all texels in the image,\r | |
112 | and the sample locations will not depend on the internal format or size of the image.\r | |
113 | </para>\r | |
114 | <para>\r | |
115 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="internalformattable.xml" />\r | |
116 | </para>\r | |
117 | </refsect1>\r | |
118 | <refsect1 id="errors"><title>Errors</title>\r | |
119 | <para>\r | |
120 | <constant>GL_INVALID_ENUM</constant> is generated if <parameter>internalformat</parameter> is not a\r | |
121 | valid color-renderable, depth-renderable or stencil-renderable format.\r | |
122 | </para>\r | |
123 | <para>\r | |
124 | <constant>GL_INVALID_ENUM</constant> is generated if <parameter>target</parameter> is not\r | |
125 | one of the accepted target enumerants.\r | |
126 | </para>\r | |
127 | <para>\r | |
128 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>width</parameter> or <parameter>height</parameter>\r | |
129 | are less than 1 or greater than the value of <constant>GL_MAX_TEXTURE_SIZE</constant>.\r | |
130 | </para>\r | |
131 | <para>\r | |
132 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>depth</parameter>\r | |
133 | is less than 1 or greater than the value of <constant>GL_MAX_ARRAY_TEXTURE_LAYERS</constant>.\r | |
134 | </para>\r | |
135 | <para>\r | |
136 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>samples</parameter> is greater than the\r | |
137 | value of <constant>GL_MAX_SAMPLES</constant>.\r | |
138 | </para>\r | |
139 | <para>\r | |
140 | <constant>GL_INVALID_OPERATION</constant> is generated if the value of <constant>GL_TEXTURE_IMMUTABLE_FORMAT</constant>\r | |
141 | for the texture bound to <parameter>target</parameter> is not <constant>GL_FALSE</constant>.\r | |
142 | </para>\r | |
143 | </refsect1>\r | |
144 | <refsect1 id="associatedgets"><title>Associated Gets</title>\r | |
145 | <para>\r | |
146 | <citerefentry><refentrytitle>glGetInteger</refentrytitle></citerefentry> with arguments <constant>GL_MAX_TEXTURE_SIZE</constant>,\r | |
147 | <constant>GL_MAX_ARRAY_TEXTURE_LEVELS</constant>, <constant>GL_TEXTURE_VIEW_MIN_LAYER</constant>,\r | |
148 | <constant>GL_TEXTURE_VIEW_NUM_LAYERS</constant>, or <constant>GL_TEXTURE_IMMUTABLE_LEVELS</constant>.\r | |
149 | </para>\r | |
150 | </refsect1>\r | |
151 | <refsect1 id="seealso"><title>See Also</title>\r | |
152 | <para>\r | |
153 | <citerefentry><refentrytitle>glTexImage3D</refentrytitle></citerefentry>,\r | |
154 | <citerefentry><refentrytitle>glTexImage3DMultisample</refentrytitle></citerefentry>,\r | |
155 | <citerefentry><refentrytitle>glTexStorage1D</refentrytitle></citerefentry>,\r | |
156 | <citerefentry><refentrytitle>glTexStorage2DMultisample</refentrytitle></citerefentry>,\r | |
157 | <citerefentry><refentrytitle>glTexStorage3D</refentrytitle></citerefentry>.\r | |
158 | </para>\r | |
159 | </refsect1>\r | |
160 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
161 | <para>\r | |
162 | Copyright <trademark class="copyright"></trademark> 2012 Khronos Group. \r | |
163 | This material may be distributed subject to the terms and conditions set forth in \r | |
164 | the Open Publication License, v 1.0, 8 June 1999.\r | |
165 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
166 | </para>\r | |
167 | </refsect1>\r | |
168 | </refentry>\r |