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="glTexImage3DMultisample">\r | |
5 | <refmeta>\r | |
6 | <refmetainfo>\r | |
7 | <copyright>\r | |
8 | <year>2010</year>\r | |
9 | <holder>Khronos Group</holder>\r | |
10 | </copyright>\r | |
11 | </refmetainfo>\r | |
12 | <refentrytitle>glTexImage3DMultisample</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>glTexImage3DMultisample</refname>\r | |
17 | <refpurpose>establish the data storage, format, dimensions, and number of samples of a multisample texture's image</refpurpose>\r | |
18 | </refnamediv>\r | |
19 | <refsynopsisdiv><title>C Specification</title>\r | |
20 | <funcsynopsis>\r | |
21 | <funcprototype>\r | |
22 | <funcdef>void <function>glTexImage3DMultisample</function></funcdef>\r | |
23 | <paramdef>GLenum <parameter>target</parameter></paramdef>\r | |
24 | <paramdef>GLsizei <parameter>samples</parameter></paramdef>\r | |
25 | <paramdef>GLint <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 | Specifies the target of the operation. <parameter>target</parameter> must be <constant>GL_TEXTURE_2D_MULTISAMPLE_ARRAY</constant> or <constant>GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY</constant>.\r | |
40 | </para>\r | |
41 | </listitem>\r | |
42 | </varlistentry>\r | |
43 | <varlistentry>\r | |
44 | <term><parameter>samples</parameter></term>\r | |
45 | <listitem>\r | |
46 | <para>\r | |
47 | The number of samples in the multisample texture's image.\r | |
48 | </para>\r | |
49 | </listitem>\r | |
50 | </varlistentry>\r | |
51 | <varlistentry>\r | |
52 | <term><parameter>internalformat</parameter></term>\r | |
53 | <listitem>\r | |
54 | <para>\r | |
55 | The internal format to be used to store the multisample texture's image. <parameter>internalformat</parameter> must specify a color-renderable, depth-renderable, or stencil-renderable format.\r | |
56 | </para>\r | |
57 | </listitem>\r | |
58 | </varlistentry>\r | |
59 | <varlistentry>\r | |
60 | <term><parameter>width</parameter></term>\r | |
61 | <listitem>\r | |
62 | <para>\r | |
63 | The width of the multisample texture's image, in texels.\r | |
64 | </para>\r | |
65 | </listitem>\r | |
66 | </varlistentry>\r | |
67 | <varlistentry>\r | |
68 | <term><parameter>height</parameter></term>\r | |
69 | <listitem>\r | |
70 | <para>\r | |
71 | The height of the multisample texture's image, in texels.\r | |
72 | </para>\r | |
73 | </listitem>\r | |
74 | </varlistentry>\r | |
75 | <varlistentry>\r | |
76 | <term><parameter>fixedsamplelocations</parameter></term>\r | |
77 | <listitem>\r | |
78 | <para>\r | |
79 | 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 | |
80 | depend on the internal format or size of the image.\r | |
81 | </para>\r | |
82 | </listitem>\r | |
83 | </varlistentry>\r | |
84 | </variablelist>\r | |
85 | </refsect1>\r | |
86 | <refsect1 id="description"><title>Description</title>\r | |
87 | <para>\r | |
88 | <function>glTexImage3DMultisample</function> establishes the data storage, format, dimensions and number of samples of a multisample texture's image.\r | |
89 | </para>\r | |
90 | <para>\r | |
91 | <parameter>target</parameter> must be <constant>GL_TEXTURE_2D_MULTISAMPLE_ARRAY</constant> or <constant>GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY</constant>.\r | |
92 | <parameter>width</parameter> and <parameter>height</parameter>are the dimensions in texels of the texture, and must\r | |
93 | be in the range zero to <constant>GL_MAX_TEXTURE_SIZE</constant> - 1. <parameter>depth</parameter> is the number of array slices in the array texture's image.\r | |
94 | <parameter>samples</parameter> specifies the number of samples in the image and must be in the range zero to <constant>GL_MAX_SAMPLES</constant> - 1.\r | |
95 | </para>\r | |
96 | <para>\r | |
97 | <parameter>internalformat</parameter> must be a color-renderable, depth-renderable, or stencil-renderable format.\r | |
98 | </para>\r | |
99 | <para>\r | |
100 | If <parameter>fixedsamplelocations</parameter> is <constant>GL_TRUE</constant>, the image will use identical sample locations and the same\r | |
101 | number of samples for all texels in the image, and the sample locations will not depend on the internal format or size of the image.\r | |
102 | </para>\r | |
103 | <para>\r | |
104 | When a multisample texture is accessed in a shader, the access takes one vector of integers describing which texel to fetch and an integer\r | |
105 | corresponding to the sample numbers describing which sample within the texel to fetch. No standard sampling instructions are allowed on the\r | |
106 | multisample texture targets.\r | |
107 | </para>\r | |
108 | </refsect1>\r | |
109 | <refsect1 id="notes"><title>Notes</title>\r | |
110 | <para>\r | |
111 | <function>glTexImage2DMultisample</function> is available only if the GL version is 3.2 or greater.\r | |
112 | </para>\r | |
113 | </refsect1>\r | |
114 | <refsect1 id="errors"><title>Errors</title>\r | |
115 | <para>\r | |
116 | <constant>GL_INVALID_OPERATION</constant> is generated if <parameter>internalformat</parameter> is a depth- or stencil-renderable format and <parameter>samples</parameter>\r | |
117 | is greater than the value of <constant>GL_MAX_DEPTH_TEXTURE_SAMPLES</constant>.\r | |
118 | </para>\r | |
119 | <para>\r | |
120 | <constant>GL_INVALID_OPERATION</constant> is generated if <parameter>internalformat</parameter> is a color-renderable format and <parameter>samples</parameter> is\r | |
121 | greater than the value of <constant>GL_MAX_COLOR_TEXTURE_SAMPLES</constant>.\r | |
122 | </para>\r | |
123 | <para>\r | |
124 | <constant>GL_INVALID_OPERATION</constant> is generated if <parameter>internalformat</parameter> is a signed or unsigned integer format and <parameter>samples</parameter>\r | |
125 | is greater than the value of <constant>GL_MAX_INTEGER_SAMPLES</constant>.\r | |
126 | </para>\r | |
127 | <para>\r | |
128 | <constant>GL_INVALID_VALUE</constant> is generated if either <parameter>width</parameter> or <parameter>height</parameter> negative or is greater than <constant>GL_MAX_TEXTURE_SIZE</constant>.\r | |
129 | </para>\r | |
130 | <para>\r | |
131 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>depth</parameter> is negative or is greater than <constant>GL_MAX_ARRAY_TEXTURE_LAYERS</constant>.\r | |
132 | </para>\r | |
133 | <para>\r | |
134 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>samples</parameter> is greater than <constant>GL_MAX_SAMPLES</constant>.\r | |
135 | </para>\r | |
136 | </refsect1>\r | |
137 | <refsect1 id="seealso"><title>See Also</title>\r | |
138 | <para>\r | |
139 | <citerefentry><refentrytitle>glTexImage3D</refentrytitle></citerefentry>,\r | |
140 | <citerefentry><refentrytitle>glTexImage2DMultisample</refentrytitle></citerefentry>\r | |
141 | </para>\r | |
142 | </refsect1>\r | |
143 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
144 | <para>\r | |
145 | Copyright <trademark class="copyright"></trademark> 2010 Khronos Group. \r | |
146 | This material may be distributed subject to the terms and conditions set forth in \r | |
147 | the Open Publication License, v 1.0, 8 June 1999.\r | |
148 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
149 | </para>\r | |
150 | </refsect1>\r | |
151 | </refentry>\r |