forked from KolibriOS/kolibrios
edb28b33f3
git-svn-id: svn://kolibrios.org@3770 a494cfbc-eb01-0410-851d-a64ba20cac60
24 KiB
24 KiB
1 | ########################################################################### |
---|---|
2 | # |
3 | # Copyright 2009-2010 VMware, Inc. |
4 | # All Rights Reserved. |
5 | # |
6 | # Permission is hereby granted, free of charge, to any person obtaining a |
7 | # copy of this software and associated documentation files (the |
8 | # without limitation the rights to use, copy, modify, merge, publish, |
9 | # distribute, sub license, and/or sell copies of the Software, and to |
10 | # permit persons to whom the Software is furnished to do so, subject to |
11 | # the following conditions: |
12 | # |
13 | # The above copyright notice and this permission notice (including the |
14 | # next paragraph) shall be included in all copies or substantial portions |
15 | # of the Software. |
16 | # |
17 | # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
18 | # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. |
19 | # IN NO EVENT SHALL THE AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR |
20 | # ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
21 | # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
22 | # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
23 | # |
24 | ########################################################################### |
25 | # This CSV file has the input data for u_format.h's struct |
26 | # util_format_description. |
27 | # |
28 | # Each format entry contains: |
29 | # - name, per enum pipe_format |
30 | # - layout, per enum util_format_layout, in shortened lower caps |
31 | # - pixel block's width |
32 | # - pixel block's height |
33 | # - channel encoding (only meaningful for plain layout), containing for each |
34 | # channel the following information: |
35 | # - type, one of |
36 | # - 'x': void |
37 | # - 'u': unsigned |
38 | # - 's': signed |
39 | # - 'h': fixed |
40 | # - 'f': FLOAT |
41 | # - optionally followed by 'n' if it is normalized |
42 | # - optionally followed by 'p' if it is pure |
43 | # - number of bits |
44 | # - channel swizzle |
45 | # - color space: rgb, yub, sz |
46 | # |
47 | # See also: |
48 | # - http://msdn.microsoft.com/en-us/library/bb172558.aspx (D3D9) |
49 | # - http://msdn.microsoft.com/en-us/library/bb205073.aspx#mapping_texture_formats (D3D9 -> D3D10) |
50 | # - http://msdn.microsoft.com/en-us/library/bb173059.aspx (D3D10) |
51 | # |
52 | # Note that GL doesn't really specify the layout of internal formats. See |
53 | # internal formats to base in- ternal formats, and desired component |
54 | # None |
55 | # Described as regular uint_8 bytes, i.e. PIPE_FORMAT_R8_USCALED |
56 | PIPE_FORMAT_NONE , plain, 1, 1, u8 , , , , x001, rgb |
57 | # Typical rendertarget formats |
58 | PIPE_FORMAT_B8G8R8A8_UNORM , plain, 1, 1, un8 , un8 , un8 , un8 , zyxw, rgb |
59 | PIPE_FORMAT_B8G8R8X8_UNORM , plain, 1, 1, un8 , un8 , un8 , x8 , zyx1, rgb |
60 | PIPE_FORMAT_A8R8G8B8_UNORM , plain, 1, 1, un8 , un8 , un8 , un8 , yzwx, rgb |
61 | PIPE_FORMAT_X8R8G8B8_UNORM , plain, 1, 1, x8 , un8 , un8 , un8 , yzw1, rgb |
62 | PIPE_FORMAT_A8B8G8R8_UNORM , plain, 1, 1, un8 , un8 , un8 , un8 , wzyx, rgb |
63 | PIPE_FORMAT_X8B8G8R8_UNORM , plain, 1, 1, x8 , un8 , un8 , un8 , wzy1, rgb |
64 | # PIPE_FORMAT_R8G8B8A8_UNORM is below |
65 | PIPE_FORMAT_R8G8B8X8_UNORM , plain, 1, 1, un8 , un8 , un8 , x8 , xyz1, rgb |
66 | #PIPE_FORMAT_B5G5R5X1_UNORM , plain, 1, 1, un5 , un5 , un5 , x1 , zyx1, rgb |
67 | #PIPE_FORMAT_B5G5R5A1_UNORM , plain, 1, 1, un5 , un5 , un5 , un1 , zyxw, rgb |
68 | #PIPE_FORMAT_B4G4R4A4_UNORM , plain, 1, 1, un4 , un4 , un4 , un4 , zyxw, rgb |
69 | #PIPE_FORMAT_B4G4R4X4_UNORM , plain, 1, 1, un4 , un4 , un4 , x4 , zyx1, rgb |
70 | #PIPE_FORMAT_B5G6R5_UNORM , plain, 1, 1, un5 , un6 , un5 , , zyx1, rgb |
71 | #PIPE_FORMAT_R10G10B10A2_UNORM , plain, 1, 1, un10, un10, un10, un2 , xyzw, rgb |
72 | #PIPE_FORMAT_B10G10R10A2_UNORM , plain, 1, 1, un10, un10, un10, un2 , zyxw, rgb |
73 | #PIPE_FORMAT_B2G3R3_UNORM , plain, 1, 1, un2 , un3 , un3 , , zyx1, rgb |
74 | # Luminance/Intensity/Alpha formats |
75 | PIPE_FORMAT_L8_UNORM , plain, 1, 1, un8 , , , , xxx1, rgb |
76 | PIPE_FORMAT_A8_UNORM , plain, 1, 1, un8 , , , , 000x, rgb |
77 | PIPE_FORMAT_I8_UNORM , plain, 1, 1, un8 , , , , xxxx, rgb |
78 | PIPE_FORMAT_L4A4_UNORM , plain, 1, 1, un4 , un4 , , , xxxy, rgb |
79 | PIPE_FORMAT_L8A8_UNORM , plain, 1, 1, un8 , un8 , , , xxxy, rgb |
80 | PIPE_FORMAT_L16_UNORM , plain, 1, 1, un16, , , , xxx1, rgb |
81 | PIPE_FORMAT_A16_UNORM , plain, 1, 1, un16, , , , 000x, rgb |
82 | PIPE_FORMAT_I16_UNORM , plain, 1, 1, un16, , , , xxxx, rgb |
83 | PIPE_FORMAT_L16A16_UNORM , plain, 1, 1, un16, un16, , , xxxy, rgb |
84 | PIPE_FORMAT_A8_SNORM , plain, 1, 1, sn8 , , , , 000x, rgb |
85 | PIPE_FORMAT_L8_SNORM , plain, 1, 1, sn8 , , , , xxx1, rgb |
86 | PIPE_FORMAT_L8A8_SNORM , plain, 1, 1, sn8 , sn8 , , , xxxy, rgb |
87 | PIPE_FORMAT_I8_SNORM , plain, 1, 1, sn8 , , , , xxxx, rgb |
88 | PIPE_FORMAT_A16_SNORM , plain, 1, 1, sn16, , , , 000x, rgb |
89 | PIPE_FORMAT_L16_SNORM , plain, 1, 1, sn16, , , , xxx1, rgb |
90 | PIPE_FORMAT_L16A16_SNORM , plain, 1, 1, sn16, sn16, , , xxxy, rgb |
91 | PIPE_FORMAT_I16_SNORM , plain, 1, 1, sn16, , , , xxxx, rgb |
92 | PIPE_FORMAT_A16_FLOAT , plain, 1, 1, f16 , , , , 000x, rgb |
93 | PIPE_FORMAT_L16_FLOAT , plain, 1, 1, f16 , , , , xxx1, rgb |
94 | PIPE_FORMAT_L16A16_FLOAT , plain, 1, 1, f16 , f16 , , , xxxy, rgb |
95 | PIPE_FORMAT_I16_FLOAT , plain, 1, 1, f16 , , , , xxxx, rgb |
96 | PIPE_FORMAT_A32_FLOAT , plain, 1, 1, f32 , , , , 000x, rgb |
97 | PIPE_FORMAT_L32_FLOAT , plain, 1, 1, f32 , , , , xxx1, rgb |
98 | PIPE_FORMAT_L32A32_FLOAT , plain, 1, 1, f32 , f32 , , , xxxy, rgb |
99 | PIPE_FORMAT_I32_FLOAT , plain, 1, 1, f32 , , , , xxxx, rgb |
100 | # SRGB formats |
101 | #PIPE_FORMAT_L8_SRGB , plain, 1, 1, un8 , , , , xxx1, srgb |
102 | #PIPE_FORMAT_L8A8_SRGB , plain, 1, 1, un8 , un8 , , , xxxy, srgb |
103 | #PIPE_FORMAT_R8G8B8_SRGB , plain, 1, 1, un8 , un8 , un8 , , xyz1, srgb |
104 | #PIPE_FORMAT_R8G8B8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb |
105 | #PIPE_FORMAT_A8B8G8R8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , wzyx, srgb |
106 | #PIPE_FORMAT_X8B8G8R8_SRGB , plain, 1, 1, x8 , un8 , un8 , un8 , wzy1, srgb |
107 | #PIPE_FORMAT_B8G8R8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb |
108 | #PIPE_FORMAT_B8G8R8X8_SRGB , plain, 1, 1, un8 , un8 , un8 , x8 , zyx1, srgb |
109 | #PIPE_FORMAT_A8R8G8B8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , yzwx, srgb |
110 | #PIPE_FORMAT_X8R8G8B8_SRGB , plain, 1, 1, x8 , un8 , un8 , un8 , yzw1, srgb |
111 | # Mixed-sign formats (typically used for bump map textures) |
112 | PIPE_FORMAT_R8SG8SB8UX8U_NORM , plain, 1, 1, sn8 , sn8 , un8 , x8 , xyz1, rgb |
113 | #PIPE_FORMAT_R10SG10SB10SA2U_NORM , plain, 1, 1, sn10, sn10, sn10, un2 , xyzw, rgb |
114 | PIPE_FORMAT_R5SG5SB6U_NORM , plain, 1, 1, sn5 , sn5 , un6 , , xyz1, rgb |
115 | # Depth-stencil formats |
116 | PIPE_FORMAT_S8_UINT , plain, 1, 1, up8 , , , , _x__, zs |
117 | PIPE_FORMAT_Z16_UNORM , plain, 1, 1, un16, , , , x___, zs |
118 | PIPE_FORMAT_Z32_UNORM , plain, 1, 1, un32, , , , x___, zs |
119 | PIPE_FORMAT_Z32_FLOAT , plain, 1, 1, f32 , , , , x___, zs |
120 | PIPE_FORMAT_Z24_UNORM_S8_UINT , plain, 1, 1, un24, up8 , , , xy__, zs |
121 | PIPE_FORMAT_S8_UINT_Z24_UNORM , plain, 1, 1, up8 , un24, , , yx__, zs |
122 | PIPE_FORMAT_X24S8_UINT , plain, 1, 1, x24 , up8 , , , _y__, zs |
123 | PIPE_FORMAT_S8X24_UINT , plain, 1, 1, up8 , x24 , , , _x__, zs |
124 | PIPE_FORMAT_Z24X8_UNORM , plain, 1, 1, un24, x8 , , , x___, zs |
125 | PIPE_FORMAT_X8Z24_UNORM , plain, 1, 1, x8 , un24, , , y___, zs |
126 | PIPE_FORMAT_Z32_FLOAT_S8X24_UINT , plain, 1, 1, f32 , up8 , x24, , xy__, zs |
127 | PIPE_FORMAT_X32_S8X24_UINT , plain, 1, 1, x32 , up8 , x24, , _y__, zs |
128 | # YUV formats |
129 | # http://www.fourcc.org/yuv.php#UYVY |
130 | PIPE_FORMAT_UYVY , subsampled, 2, 1, x32 , , , , xyz1, yuv |
131 | # http://www.fourcc.org/yuv.php#YUYV (a.k.a http://www.fourcc.org/yuv.php#YUY2) |
132 | PIPE_FORMAT_YUYV , subsampled, 2, 1, x32 , , , , xyz1, yuv |
133 | # same subsampling but with rgb channels |
134 | PIPE_FORMAT_R8G8_B8G8_UNORM , subsampled, 2, 1, x32 , , , , xyz1, rgb |
135 | PIPE_FORMAT_G8R8_G8B8_UNORM , subsampled, 2, 1, x32 , , , , xyz1, rgb |
136 | PIPE_FORMAT_G8R8_B8R8_UNORM , subsampled, 2, 1, x32 , , , , yxz1, rgb |
137 | PIPE_FORMAT_R8G8_R8B8_UNORM , subsampled, 2, 1, x32 , , , , yxz1, rgb |
138 | # some special formats not fitting anywhere else |
139 | PIPE_FORMAT_R11G11B10_FLOAT , other, 1, 1, x32 , , , , xyz1, rgb |
140 | PIPE_FORMAT_R9G9B9E5_FLOAT , other, 1, 1, x32 , , , , xyz1, rgb |
141 | PIPE_FORMAT_R1_UNORM , other, 8, 1, x8 , , , , x001, rgb |
142 | # A.k.a. D3DFMT_CxV8U8 |
143 | PIPE_FORMAT_R8G8Bx_SNORM , other, 1, 1, sn8 , sn8 , , , xyz1, rgb |
144 | # Compressed formats |
145 | # - http://en.wikipedia.org/wiki/S3_Texture_Compression |
146 | # - http://www.opengl.org/registry/specs/EXT/texture_compression_s3tc.txt |
147 | # - http://www.opengl.org/registry/specs/ARB/texture_compression_rgtc.txt |
148 | # - http://www.opengl.org/registry/specs/EXT/texture_compression_latc.txt |
149 | # - http://www.khronos.org/registry/gles/extensions/OES/OES_compressed_ETC1_RGB8_texture.txt |
150 | # - http://msdn.microsoft.com/en-us/library/bb694531.aspx |
151 | #PIPE_FORMAT_DXT1_RGB , s3tc, 4, 4, x64 , , , , xyz1, rgb |
152 | #PIPE_FORMAT_DXT1_RGBA , s3tc, 4, 4, x64 , , , , xyzw, rgb |
153 | #PIPE_FORMAT_DXT3_RGBA , s3tc, 4, 4, x128, , , , xyzw, rgb |
154 | #PIPE_FORMAT_DXT5_RGBA , s3tc, 4, 4, x128, , , , xyzw, rgb |
155 | #PIPE_FORMAT_DXT1_SRGB , s3tc, 4, 4, x64 , , , , xyz1, srgb |
156 | #PIPE_FORMAT_DXT1_SRGBA , s3tc, 4, 4, x64 , , , , xyzw, srgb |
157 | #PIPE_FORMAT_DXT3_SRGBA , s3tc, 4, 4, x128, , , , xyzw, srgb |
158 | #PIPE_FORMAT_DXT5_SRGBA , s3tc, 4, 4, x128, , , , xyzw, srgb |
159 | #PIPE_FORMAT_RGTC1_UNORM , rgtc, 4, 4, x64, , , , x001, rgb |
160 | #PIPE_FORMAT_RGTC1_SNORM , rgtc, 4, 4, x64, , , , x001, rgb |
161 | #PIPE_FORMAT_RGTC2_UNORM , rgtc, 4, 4, x128, , , , xy01, rgb |
162 | #PIPE_FORMAT_RGTC2_SNORM , rgtc, 4, 4, x128, , , , xy01, rgb |
163 | #PIPE_FORMAT_LATC1_UNORM , rgtc, 4, 4, x64, , , , xxx1, rgb |
164 | #PIPE_FORMAT_LATC1_SNORM , rgtc, 4, 4, x64, , , , xxx1, rgb |
165 | #PIPE_FORMAT_LATC2_UNORM , rgtc, 4, 4, x128, , , , xxxy, rgb |
166 | #PIPE_FORMAT_LATC2_SNORM , rgtc, 4, 4, x128, , , , xxxy, rgb |
167 | #PIPE_FORMAT_ETC1_RGB8 , etc, 4, 4, x64, , , , xyz1, rgb |
168 | # Straightforward D3D10-like formats (also used for |
169 | # vertex buffer element description) |
170 | # |
171 | # See also: |
172 | # - src/gallium/auxiliary/translate/translate_generic.c |
173 | # - src/mesa/state_tracker/st_draw.c |
174 | PIPE_FORMAT_R64_FLOAT , plain, 1, 1, f64 , , , , x001, rgb |
175 | PIPE_FORMAT_R64G64_FLOAT , plain, 1, 1, f64 , f64 , , , xy01, rgb |
176 | PIPE_FORMAT_R64G64B64_FLOAT , plain, 1, 1, f64 , f64 , f64 , , xyz1, rgb |
177 | PIPE_FORMAT_R64G64B64A64_FLOAT , plain, 1, 1, f64 , f64 , f64 , f64 , xyzw, rgb |
178 | PIPE_FORMAT_R32_FLOAT , plain, 1, 1, f32 , , , , x001, rgb |
179 | PIPE_FORMAT_R32G32_FLOAT , plain, 1, 1, f32 , f32 , , , xy01, rgb |
180 | PIPE_FORMAT_R32G32B32_FLOAT , plain, 1, 1, f32 , f32 , f32 , , xyz1, rgb |
181 | PIPE_FORMAT_R32G32B32A32_FLOAT , plain, 1, 1, f32 , f32 , f32 , f32 , xyzw, rgb |
182 | PIPE_FORMAT_R32_UNORM , plain, 1, 1, un32, , , , x001, rgb |
183 | PIPE_FORMAT_R32G32_UNORM , plain, 1, 1, un32, un32, , , xy01, rgb |
184 | PIPE_FORMAT_R32G32B32_UNORM , plain, 1, 1, un32, un32, un32, , xyz1, rgb |
185 | PIPE_FORMAT_R32G32B32A32_UNORM , plain, 1, 1, un32, un32, un32, un32, xyzw, rgb |
186 | PIPE_FORMAT_R32_USCALED , plain, 1, 1, u32 , , , , x001, rgb |
187 | PIPE_FORMAT_R32G32_USCALED , plain, 1, 1, u32 , u32 , , , xy01, rgb |
188 | PIPE_FORMAT_R32G32B32_USCALED , plain, 1, 1, u32 , u32 , u32 , , xyz1, rgb |
189 | PIPE_FORMAT_R32G32B32A32_USCALED , plain, 1, 1, u32 , u32 , u32 , u32 , xyzw, rgb |
190 | PIPE_FORMAT_R32_SNORM , plain, 1, 1, sn32, , , , x001, rgb |
191 | PIPE_FORMAT_R32G32_SNORM , plain, 1, 1, sn32, sn32, , , xy01, rgb |
192 | PIPE_FORMAT_R32G32B32_SNORM , plain, 1, 1, sn32, sn32, sn32, , xyz1, rgb |
193 | PIPE_FORMAT_R32G32B32A32_SNORM , plain, 1, 1, sn32, sn32, sn32, sn32, xyzw, rgb |
194 | PIPE_FORMAT_R32_SSCALED , plain, 1, 1, s32 , , , , x001, rgb |
195 | PIPE_FORMAT_R32G32_SSCALED , plain, 1, 1, s32 , s32 , , , xy01, rgb |
196 | PIPE_FORMAT_R32G32B32_SSCALED , plain, 1, 1, s32 , s32 , s32 , , xyz1, rgb |
197 | PIPE_FORMAT_R32G32B32A32_SSCALED , plain, 1, 1, s32 , s32 , s32 , s32 , xyzw, rgb |
198 | PIPE_FORMAT_R16_FLOAT , plain, 1, 1, f16 , , , , x001, rgb |
199 | PIPE_FORMAT_R16G16_FLOAT , plain, 1, 1, f16 , f16 , , , xy01, rgb |
200 | PIPE_FORMAT_R16G16B16_FLOAT , plain, 1, 1, f16 , f16 , f16 , , xyz1, rgb |
201 | PIPE_FORMAT_R16G16B16A16_FLOAT , plain, 1, 1, f16 , f16 , f16 , f16 , xyzw, rgb |
202 | PIPE_FORMAT_R16_UNORM , plain, 1, 1, un16, , , , x001, rgb |
203 | PIPE_FORMAT_R16G16_UNORM , plain, 1, 1, un16, un16, , , xy01, rgb |
204 | PIPE_FORMAT_R16G16B16_UNORM , plain, 1, 1, un16, un16, un16, , xyz1, rgb |
205 | PIPE_FORMAT_R16G16B16A16_UNORM , plain, 1, 1, un16, un16, un16, un16, xyzw, rgb |
206 | PIPE_FORMAT_R16_USCALED , plain, 1, 1, u16 , , , , x001, rgb |
207 | PIPE_FORMAT_R16G16_USCALED , plain, 1, 1, u16 , u16 , , , xy01, rgb |
208 | PIPE_FORMAT_R16G16B16_USCALED , plain, 1, 1, u16 , u16 , u16 , , xyz1, rgb |
209 | PIPE_FORMAT_R16G16B16A16_USCALED , plain, 1, 1, u16 , u16 , u16 , u16 , xyzw, rgb |
210 | PIPE_FORMAT_R16_SNORM , plain, 1, 1, sn16, , , , x001, rgb |
211 | PIPE_FORMAT_R16G16_SNORM , plain, 1, 1, sn16, sn16, , , xy01, rgb |
212 | PIPE_FORMAT_R16G16B16_SNORM , plain, 1, 1, sn16, sn16, sn16, , xyz1, rgb |
213 | PIPE_FORMAT_R16G16B16A16_SNORM , plain, 1, 1, sn16, sn16, sn16, sn16, xyzw, rgb |
214 | PIPE_FORMAT_R16_SSCALED , plain, 1, 1, s16 , , , , x001, rgb |
215 | PIPE_FORMAT_R16G16_SSCALED , plain, 1, 1, s16 , s16 , , , xy01, rgb |
216 | PIPE_FORMAT_R16G16B16_SSCALED , plain, 1, 1, s16 , s16 , s16 , , xyz1, rgb |
217 | PIPE_FORMAT_R16G16B16A16_SSCALED , plain, 1, 1, s16 , s16 , s16 , s16 , xyzw, rgb |
218 | PIPE_FORMAT_R8_UNORM , plain, 1, 1, un8 , , , , x001, rgb |
219 | PIPE_FORMAT_R8G8_UNORM , plain, 1, 1, un8 , un8 , , , xy01, rgb |
220 | PIPE_FORMAT_R8G8B8_UNORM , plain, 1, 1, un8 , un8 , un8 , , xyz1, rgb |
221 | PIPE_FORMAT_R8G8B8A8_UNORM , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, rgb |
222 | PIPE_FORMAT_R8_USCALED , plain, 1, 1, u8 , , , , x001, rgb |
223 | PIPE_FORMAT_R8G8_USCALED , plain, 1, 1, u8 , u8 , , , xy01, rgb |
224 | PIPE_FORMAT_R8G8B8_USCALED , plain, 1, 1, u8 , u8 , u8 , , xyz1, rgb |
225 | PIPE_FORMAT_R8G8B8A8_USCALED , plain, 1, 1, u8 , u8 , u8 , u8 , xyzw, rgb |
226 | PIPE_FORMAT_R8_SNORM , plain, 1, 1, sn8 , , , , x001, rgb |
227 | PIPE_FORMAT_R8G8_SNORM , plain, 1, 1, sn8 , sn8 , , , xy01, rgb |
228 | PIPE_FORMAT_R8G8B8_SNORM , plain, 1, 1, sn8 , sn8 , sn8 , , xyz1, rgb |
229 | PIPE_FORMAT_R8G8B8A8_SNORM , plain, 1, 1, sn8 , sn8 , sn8 , sn8 , xyzw, rgb |
230 | PIPE_FORMAT_R8_SSCALED , plain, 1, 1, s8 , , , , x001, rgb |
231 | PIPE_FORMAT_R8G8_SSCALED , plain, 1, 1, s8 , s8 , , , xy01, rgb |
232 | PIPE_FORMAT_R8G8B8_SSCALED , plain, 1, 1, s8 , s8 , s8 , , xyz1, rgb |
233 | PIPE_FORMAT_R8G8B8A8_SSCALED , plain, 1, 1, s8 , s8 , s8 , s8 , xyzw, rgb |
234 | # GL-specific vertex buffer element formats |
235 | # A.k.a. GL_FIXED |
236 | PIPE_FORMAT_R32_FIXED , plain, 1, 1, h32 , , , , x001, rgb |
237 | PIPE_FORMAT_R32G32_FIXED , plain, 1, 1, h32 , h32 , , , xy01, rgb |
238 | PIPE_FORMAT_R32G32B32_FIXED , plain, 1, 1, h32 , h32 , h32 , , xyz1, rgb |
239 | PIPE_FORMAT_R32G32B32A32_FIXED , plain, 1, 1, h32 , h32 , h32 , h32 , xyzw, rgb |
240 | # D3D9-specific vertex buffer element formats |
241 | # See also: |
242 | # - http://msdn.microsoft.com/en-us/library/bb172533.aspx |
243 | # A.k.a. D3DDECLTYPE_UDEC3 |
244 | PIPE_FORMAT_R10G10B10X2_USCALED , plain, 1, 1, u10 , u10 , u10 , x2 , xyz1, rgb |
245 | # A.k.a. D3DDECLTYPE_DEC3N |
246 | PIPE_FORMAT_R10G10B10X2_SNORM , plain, 1, 1, sn10, sn10, sn10 , x2 , xyz1, rgb |
247 | PIPE_FORMAT_YV12 , other, 1, 1, x8 , x8 , x8 , x8 , xyzw, yuv |
248 | PIPE_FORMAT_YV16 , other, 1, 1, x8 , x8 , x8 , x8 , xyzw, yuv |
249 | PIPE_FORMAT_IYUV , other, 1, 1, x8 , x8 , x8 , x8 , xyzw, yuv |
250 | PIPE_FORMAT_NV12 , other, 1, 1, x8 , x8 , x8 , x8 , xyzw, yuv |
251 | PIPE_FORMAT_NV21 , other, 1, 1, x8 , x8 , x8 , x8 , xyzw, yuv |
252 | # Usually used to implement IA44 and AI44 formats in video decoding |
253 | PIPE_FORMAT_R4A4_UNORM , plain, 1, 1, un4 , un4 , , , y00x, rgb |
254 | PIPE_FORMAT_A4R4_UNORM , plain, 1, 1, un4 , un4 , , , x00y, rgb |
255 | PIPE_FORMAT_R8A8_UNORM , plain, 1, 1, un8 , un8 , , , x00y, rgb |
256 | PIPE_FORMAT_A8R8_UNORM , plain, 1, 1, un8 , un8 , , , y00x, rgb |
257 | # ARB_vertex_type_10_10_10_2_REV |
258 | #PIPE_FORMAT_R10G10B10A2_USCALED , plain, 1, 1, u10, u10, u10, u2, xyzw, rgb |
259 | #PIPE_FORMAT_R10G10B10A2_SSCALED , plain, 1, 1, s10, s10, s10, s2, xyzw, rgb |
260 | #PIPE_FORMAT_R10G10B10A2_SNORM , plain, 1, 1, sn10, sn10, sn10, sn2, xyzw, rgb |
261 | #PIPE_FORMAT_B10G10R10A2_USCALED , plain, 1, 1, u10, u10, u10, u2, zyxw, rgb |
262 | #PIPE_FORMAT_B10G10R10A2_SSCALED , plain, 1, 1, s10, s10, s10, s2, zyxw, rgb |
263 | #PIPE_FORMAT_B10G10R10A2_SNORM , plain, 1, 1, sn10, sn10, sn10, sn2, zyxw, rgb |
264 | PIPE_FORMAT_R8_UINT , plain, 1, 1, up8, , , , x001, rgb |
265 | PIPE_FORMAT_R8G8_UINT , plain, 1, 1, up8, up8, , , xy01, rgb |
266 | PIPE_FORMAT_R8G8B8_UINT , plain, 1, 1, up8, up8, up8, , xyz1, rgb |
267 | PIPE_FORMAT_R8G8B8A8_UINT , plain, 1, 1, up8, up8, up8, up8, xyzw, rgb |
268 | PIPE_FORMAT_R8_SINT , plain, 1, 1, sp8, , , , x001, rgb |
269 | PIPE_FORMAT_R8G8_SINT , plain, 1, 1, sp8, sp8, , , xy01, rgb |
270 | PIPE_FORMAT_R8G8B8_SINT , plain, 1, 1, sp8, sp8, sp8, , xyz1, rgb |
271 | PIPE_FORMAT_R8G8B8A8_SINT , plain, 1, 1, sp8, sp8, sp8, sp8, xyzw, rgb |
272 | PIPE_FORMAT_R16_UINT , plain, 1, 1, up16, , , , x001, rgb |
273 | PIPE_FORMAT_R16G16_UINT , plain, 1, 1, up16, up16, , , xy01, rgb |
274 | PIPE_FORMAT_R16G16B16_UINT , plain, 1, 1, up16, up16, up16, , xyz1, rgb |
275 | PIPE_FORMAT_R16G16B16A16_UINT , plain, 1, 1, up16, up16, up16, up16, xyzw, rgb |
276 | PIPE_FORMAT_R16_SINT , plain, 1, 1, sp16, , , , x001, rgb |
277 | PIPE_FORMAT_R16G16_SINT , plain, 1, 1, sp16, sp16, , , xy01, rgb |
278 | PIPE_FORMAT_R16G16B16_SINT , plain, 1, 1, sp16, sp16, sp16, , xyz1, rgb |
279 | PIPE_FORMAT_R16G16B16A16_SINT , plain, 1, 1, sp16, sp16, sp16, sp16, xyzw, rgb |
280 | PIPE_FORMAT_R32_UINT , plain, 1, 1, up32, , , , x001, rgb |
281 | PIPE_FORMAT_R32G32_UINT , plain, 1, 1, up32, up32, , , xy01, rgb |
282 | PIPE_FORMAT_R32G32B32_UINT , plain, 1, 1, up32, up32, up32, , xyz1, rgb |
283 | PIPE_FORMAT_R32G32B32A32_UINT , plain, 1, 1, up32, up32, up32, up32, xyzw, rgb |
284 | PIPE_FORMAT_R32_SINT , plain, 1, 1, sp32, , , , x001, rgb |
285 | PIPE_FORMAT_R32G32_SINT , plain, 1, 1, sp32, sp32, , , xy01, rgb |
286 | PIPE_FORMAT_R32G32B32_SINT , plain, 1, 1, sp32, sp32, sp32, , xyz1, rgb |
287 | PIPE_FORMAT_R32G32B32A32_SINT , plain, 1, 1, sp32, sp32, sp32, sp32, xyzw, rgb |
288 | PIPE_FORMAT_A8_UINT , plain, 1, 1, up8, , , , 000x, rgb |
289 | PIPE_FORMAT_I8_UINT , plain, 1, 1, up8, , , , xxxx, rgb |
290 | PIPE_FORMAT_L8_UINT , plain, 1, 1, up8, , , , xxx1, rgb |
291 | PIPE_FORMAT_L8A8_UINT , plain, 1, 1, up8, up8, , , xxxy, rgb |
292 | PIPE_FORMAT_A8_SINT , plain, 1, 1, sp8, , , , 000x, rgb |
293 | PIPE_FORMAT_I8_SINT , plain, 1, 1, sp8, , , , xxxx, rgb |
294 | PIPE_FORMAT_L8_SINT , plain, 1, 1, sp8, , , , xxx1, rgb |
295 | PIPE_FORMAT_L8A8_SINT , plain, 1, 1, sp8, sp8, , , xxxy, rgb |
296 | PIPE_FORMAT_A16_UINT , plain, 1, 1, up16, , , , 000x, rgb |
297 | PIPE_FORMAT_I16_UINT , plain, 1, 1, up16, , , , xxxx, rgb |
298 | PIPE_FORMAT_L16_UINT , plain, 1, 1, up16, , , , xxx1, rgb |
299 | PIPE_FORMAT_L16A16_UINT , plain, 1, 1, up16, up16, , , xxxy, rgb |
300 | PIPE_FORMAT_A16_SINT , plain, 1, 1, sp16, , , , 000x, rgb |
301 | PIPE_FORMAT_I16_SINT , plain, 1, 1, sp16, , , , xxxx, rgb |
302 | PIPE_FORMAT_L16_SINT , plain, 1, 1, sp16, , , , xxx1, rgb |
303 | PIPE_FORMAT_L16A16_SINT , plain, 1, 1, sp16, sp16, , , xxxy, rgb |
304 | PIPE_FORMAT_A32_UINT , plain, 1, 1, up32, , , , 000x, rgb |
305 | PIPE_FORMAT_I32_UINT , plain, 1, 1, up32, , , , xxxx, rgb |
306 | PIPE_FORMAT_L32_UINT , plain, 1, 1, up32, , , , xxx1, rgb |
307 | PIPE_FORMAT_L32A32_UINT , plain, 1, 1, up32, up32, , , xxxy, rgb |
308 | PIPE_FORMAT_A32_SINT , plain, 1, 1, sp32, , , , 000x, rgb |
309 | PIPE_FORMAT_I32_SINT , plain, 1, 1, sp32, , , , xxxx, rgb |
310 | PIPE_FORMAT_L32_SINT , plain, 1, 1, sp32, , , , xxx1, rgb |
311 | PIPE_FORMAT_L32A32_SINT , plain, 1, 1, sp32, sp32, , , xxxy, rgb |
312 | #PIPE_FORMAT_B10G10R10A2_UINT , plain, 1, 1, up10, up10, up10, up2, zyxw, rgb |
313 | PIPE_FORMAT_R8G8B8X8_SNORM , plain, 1, 1, sn8, sn8, sn8, x8, xyz1, rgb |
314 | PIPE_FORMAT_R8G8B8X8_SRGB , plain, 1, 1, un8, un8, un8, x8, xyz1, srgb |
315 | PIPE_FORMAT_R8G8B8X8_UINT , plain, 1, 1, up8, up8, up8, x8, xyz1, rgb |
316 | PIPE_FORMAT_R8G8B8X8_SINT , plain, 1, 1, sp8, sp8, sp8, x8, xyz1, rgb |
317 | #PIPE_FORMAT_B10G10R10X2_UNORM , plain, 1, 1, un10, un10, un10, x2, zyx1, rgb |
318 | PIPE_FORMAT_R16G16B16X16_UNORM , plain, 1, 1, un16, un16, un16, x16, xyz1, rgb |
319 | PIPE_FORMAT_R16G16B16X16_SNORM , plain, 1, 1, sn16, sn16, sn16, x16, xyz1, rgb |
320 | PIPE_FORMAT_R16G16B16X16_FLOAT , plain, 1, 1, f16, f16, f16, x16, xyz1, rgb |
321 | PIPE_FORMAT_R16G16B16X16_UINT , plain, 1, 1, up16, up16, up16, x16, xyz1, rgb |
322 | PIPE_FORMAT_R16G16B16X16_SINT , plain, 1, 1, sp16, sp16, sp16, x16, xyz1, rgb |
323 | PIPE_FORMAT_R32G32B32X32_FLOAT , plain, 1, 1, f32, f32, f32, x32, xyz1, rgb |
324 | PIPE_FORMAT_R32G32B32X32_UINT , plain, 1, 1, up32, up32, up32, x32, xyz1, rgb |
325 | PIPE_FORMAT_R32G32B32X32_SINT , plain, 1, 1, sp32, sp32, sp32, x32, xyz1, rgb |
326 | PIPE_FORMAT_R8A8_SNORM , plain, 1, 1, sn8 , sn8 , , , x00y, rgb |
327 | PIPE_FORMAT_R16A16_UNORM , plain, 1, 1, un16 , un16 , , , x00y, rgb |
328 | PIPE_FORMAT_R16A16_SNORM , plain, 1, 1, sn16 , sn16 , , , x00y, rgb |
329 | PIPE_FORMAT_R16A16_FLOAT , plain, 1, 1, f16 , f16 , , , x00y, rgb |
330 | PIPE_FORMAT_R32A32_FLOAT , plain, 1, 1, f32 , f32 , , , x00y, rgb |
331 | PIPE_FORMAT_R8A8_UINT , plain, 1, 1, up8 , up8 , , , x00y, rgb |
332 | PIPE_FORMAT_R8A8_SINT , plain, 1, 1, sp8 , sp8 , , , x00y, rgb |
333 | PIPE_FORMAT_R16A16_UINT , plain, 1, 1, up16 , up16 , , , x00y, rgb |
334 | PIPE_FORMAT_R16A16_SINT , plain, 1, 1, sp16 , sp16 , , , x00y, rgb |
335 | PIPE_FORMAT_R32A32_UINT , plain, 1, 1, up32 , up32 , , , x00y, rgb |
336 | PIPE_FORMAT_R32A32_SINT , plain, 1, 1, sp32 , sp32 , , , x00y, rgb |