00001 /* 00002 ----------------------------------------------------------------------------- 00003 This source file is part of OGRE 00004 (Object-oriented Graphics Rendering Engine) 00005 For the latest info, see http://www.ogre3d.org/ 00006 00007 Copyright (c) 2000-2013 Torus Knot Software Ltd 00008 00009 Permission is hereby granted, free of charge, to any person obtaining a copy 00010 of this software and associated documentation files (the "Software"), to deal 00011 in the Software without restriction, including without limitation the rights 00012 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00013 copies of the Software, and to permit persons to whom the Software is 00014 furnished to do so, subject to the following conditions: 00015 00016 The above copyright notice and this permission notice shall be included in 00017 all copies or substantial portions of the Software. 00018 00019 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00020 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00021 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00022 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00023 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00024 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00025 THE SOFTWARE. 00026 ----------------------------------------------------------------------------- 00027 */ 00028 #ifndef __PixelFormatDescriptions_H__ 00029 #define __PixelFormatDescriptions_H__ 00030 00031 #include "OgrePrerequisites.h" 00032 #include "OgreCommon.h" 00033 #include "OgreHeaderPrefix.h" 00034 00035 namespace Ogre { 00036 //----------------------------------------------------------------------- 00040 struct PixelFormatDescription { 00041 /* Name of the format, as in the enum */ 00042 const char *name; 00043 /* Number of bytes one element (colour value) takes. */ 00044 unsigned char elemBytes; 00045 /* Pixel format flags, see enum PixelFormatFlags for the bit field 00046 * definitions 00047 */ 00048 uint32 flags; 00051 PixelComponentType componentType; 00054 unsigned char componentCount; 00055 /* Number of bits for red(or luminance), green, blue, alpha 00056 */ 00057 unsigned char rbits, gbits, bbits, abits; /*, ibits, dbits, ... */ 00058 00059 /* Masks and shifts as used by packers/unpackers */ 00060 uint64 rmask, gmask, bmask, amask; 00061 unsigned char rshift, gshift, bshift, ashift; 00062 }; 00063 //----------------------------------------------------------------------- 00065 PixelFormatDescription _pixelFormats[PF_COUNT] = { 00066 //----------------------------------------------------------------------- 00067 {"PF_UNKNOWN", 00068 /* Bytes per element */ 00069 0, 00070 /* Flags */ 00071 0, 00072 /* Component type and count */ 00073 PCT_BYTE, 0, 00074 /* rbits, gbits, bbits, abits */ 00075 0, 0, 0, 0, 00076 /* Masks and shifts */ 00077 0, 0, 0, 0, 0, 0, 0, 0 00078 }, 00079 //----------------------------------------------------------------------- 00080 {"PF_L8", 00081 /* Bytes per element */ 00082 1, 00083 /* Flags */ 00084 PFF_LUMINANCE | PFF_NATIVEENDIAN, 00085 /* Component type and count */ 00086 PCT_BYTE, 1, 00087 /* rbits, gbits, bbits, abits */ 00088 8, 0, 0, 0, 00089 /* Masks and shifts */ 00090 0xFF, 0, 0, 0, 0, 0, 0, 0 00091 }, 00092 //----------------------------------------------------------------------- 00093 {"PF_L16", 00094 /* Bytes per element */ 00095 2, 00096 /* Flags */ 00097 PFF_LUMINANCE | PFF_NATIVEENDIAN, 00098 /* Component type and count */ 00099 PCT_SHORT, 1, 00100 /* rbits, gbits, bbits, abits */ 00101 16, 0, 0, 0, 00102 /* Masks and shifts */ 00103 0xFFFF, 0, 0, 0, 0, 0, 0, 0 00104 }, 00105 //----------------------------------------------------------------------- 00106 {"PF_A8", 00107 /* Bytes per element */ 00108 1, 00109 /* Flags */ 00110 PFF_HASALPHA | PFF_NATIVEENDIAN, 00111 /* Component type and count */ 00112 PCT_BYTE, 1, 00113 /* rbits, gbits, bbits, abits */ 00114 0, 0, 0, 8, 00115 /* Masks and shifts */ 00116 0, 0, 0, 0xFF, 0, 0, 0, 0 00117 }, 00118 //----------------------------------------------------------------------- 00119 {"PF_A4L4", 00120 /* Bytes per element */ 00121 1, 00122 /* Flags */ 00123 PFF_HASALPHA | PFF_LUMINANCE | PFF_NATIVEENDIAN, 00124 /* Component type and count */ 00125 PCT_BYTE, 2, 00126 /* rbits, gbits, bbits, abits */ 00127 4, 0, 0, 4, 00128 /* Masks and shifts */ 00129 0x0F, 0, 0, 0xF0, 0, 0, 0, 4 00130 }, 00131 //----------------------------------------------------------------------- 00132 {"PF_BYTE_LA", 00133 /* Bytes per element */ 00134 2, 00135 /* Flags */ 00136 PFF_HASALPHA | PFF_LUMINANCE, 00137 /* Component type and count */ 00138 PCT_BYTE, 2, 00139 /* rbits, gbits, bbits, abits */ 00140 8, 0, 0, 8, 00141 /* Masks and shifts */ 00142 0,0,0,0,0,0,0,0 00143 }, 00144 //----------------------------------------------------------------------- 00145 {"PF_R5G6B5", 00146 /* Bytes per element */ 00147 2, 00148 /* Flags */ 00149 PFF_NATIVEENDIAN, 00150 /* Component type and count */ 00151 PCT_BYTE, 3, 00152 /* rbits, gbits, bbits, abits */ 00153 5, 6, 5, 0, 00154 /* Masks and shifts */ 00155 0xF800, 0x07E0, 0x001F, 0, 00156 11, 5, 0, 0 00157 }, 00158 //----------------------------------------------------------------------- 00159 {"PF_B5G6R5", 00160 /* Bytes per element */ 00161 2, 00162 /* Flags */ 00163 PFF_NATIVEENDIAN, 00164 /* Component type and count */ 00165 PCT_BYTE, 3, 00166 /* rbits, gbits, bbits, abits */ 00167 5, 6, 5, 0, 00168 /* Masks and shifts */ 00169 0x001F, 0x07E0, 0xF800, 0, 00170 0, 5, 11, 0 00171 }, 00172 //----------------------------------------------------------------------- 00173 {"PF_A4R4G4B4", 00174 /* Bytes per element */ 00175 2, 00176 /* Flags */ 00177 PFF_HASALPHA | PFF_NATIVEENDIAN, 00178 /* Component type and count */ 00179 PCT_BYTE, 4, 00180 /* rbits, gbits, bbits, abits */ 00181 4, 4, 4, 4, 00182 /* Masks and shifts */ 00183 0x0F00, 0x00F0, 0x000F, 0xF000, 00184 8, 4, 0, 12 00185 }, 00186 //----------------------------------------------------------------------- 00187 {"PF_A1R5G5B5", 00188 /* Bytes per element */ 00189 2, 00190 /* Flags */ 00191 PFF_HASALPHA | PFF_NATIVEENDIAN, 00192 /* Component type and count */ 00193 PCT_BYTE, 4, 00194 /* rbits, gbits, bbits, abits */ 00195 5, 5, 5, 1, 00196 /* Masks and shifts */ 00197 0x7C00, 0x03E0, 0x001F, 0x8000, 00198 10, 5, 0, 15, 00199 }, 00200 //----------------------------------------------------------------------- 00201 {"PF_R8G8B8", 00202 /* Bytes per element */ 00203 3, // 24 bit integer -- special 00204 /* Flags */ 00205 PFF_NATIVEENDIAN, 00206 /* Component type and count */ 00207 PCT_BYTE, 3, 00208 /* rbits, gbits, bbits, abits */ 00209 8, 8, 8, 0, 00210 /* Masks and shifts */ 00211 0xFF0000, 0x00FF00, 0x0000FF, 0, 00212 16, 8, 0, 0 00213 }, 00214 //----------------------------------------------------------------------- 00215 {"PF_B8G8R8", 00216 /* Bytes per element */ 00217 3, // 24 bit integer -- special 00218 /* Flags */ 00219 PFF_NATIVEENDIAN, 00220 /* Component type and count */ 00221 PCT_BYTE, 3, 00222 /* rbits, gbits, bbits, abits */ 00223 8, 8, 8, 0, 00224 /* Masks and shifts */ 00225 0x0000FF, 0x00FF00, 0xFF0000, 0, 00226 0, 8, 16, 0 00227 }, 00228 //----------------------------------------------------------------------- 00229 {"PF_A8R8G8B8", 00230 /* Bytes per element */ 00231 4, 00232 /* Flags */ 00233 PFF_HASALPHA | PFF_NATIVEENDIAN, 00234 /* Component type and count */ 00235 PCT_BYTE, 4, 00236 /* rbits, gbits, bbits, abits */ 00237 8, 8, 8, 8, 00238 /* Masks and shifts */ 00239 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000, 00240 16, 8, 0, 24 00241 }, 00242 //----------------------------------------------------------------------- 00243 {"PF_A8B8G8R8", 00244 /* Bytes per element */ 00245 4, 00246 /* Flags */ 00247 PFF_HASALPHA | PFF_NATIVEENDIAN, 00248 /* Component type and count */ 00249 PCT_BYTE, 4, 00250 /* rbits, gbits, bbits, abits */ 00251 8, 8, 8, 8, 00252 /* Masks and shifts */ 00253 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000, 00254 0, 8, 16, 24, 00255 }, 00256 //----------------------------------------------------------------------- 00257 {"PF_B8G8R8A8", 00258 /* Bytes per element */ 00259 4, 00260 /* Flags */ 00261 PFF_HASALPHA | PFF_NATIVEENDIAN, 00262 /* Component type and count */ 00263 PCT_BYTE, 4, 00264 /* rbits, gbits, bbits, abits */ 00265 8, 8, 8, 8, 00266 /* Masks and shifts */ 00267 0x0000FF00, 0x00FF0000, 0xFF000000, 0x000000FF, 00268 8, 16, 24, 0 00269 }, 00270 //----------------------------------------------------------------------- 00271 {"PF_A2R10G10B10", 00272 /* Bytes per element */ 00273 4, 00274 /* Flags */ 00275 PFF_HASALPHA | PFF_NATIVEENDIAN, 00276 /* Component type and count */ 00277 PCT_BYTE, 4, 00278 /* rbits, gbits, bbits, abits */ 00279 10, 10, 10, 2, 00280 /* Masks and shifts */ 00281 0x3FF00000, 0x000FFC00, 0x000003FF, 0xC0000000, 00282 20, 10, 0, 30 00283 }, 00284 //----------------------------------------------------------------------- 00285 {"PF_A2B10G10R10", 00286 /* Bytes per element */ 00287 4, 00288 /* Flags */ 00289 PFF_HASALPHA | PFF_NATIVEENDIAN, 00290 /* Component type and count */ 00291 PCT_BYTE, 4, 00292 /* rbits, gbits, bbits, abits */ 00293 10, 10, 10, 2, 00294 /* Masks and shifts */ 00295 0x000003FF, 0x000FFC00, 0x3FF00000, 0xC0000000, 00296 0, 10, 20, 30 00297 }, 00298 //----------------------------------------------------------------------- 00299 {"PF_DXT1", 00300 /* Bytes per element */ 00301 0, 00302 /* Flags */ 00303 PFF_COMPRESSED | PFF_HASALPHA, 00304 /* Component type and count */ 00305 PCT_BYTE, 3, // No alpha 00306 /* rbits, gbits, bbits, abits */ 00307 0, 0, 0, 0, 00308 /* Masks and shifts */ 00309 0, 0, 0, 0, 0, 0, 0, 0 00310 }, 00311 //----------------------------------------------------------------------- 00312 {"PF_DXT2", 00313 /* Bytes per element */ 00314 0, 00315 /* Flags */ 00316 PFF_COMPRESSED | PFF_HASALPHA, 00317 /* Component type and count */ 00318 PCT_BYTE, 4, 00319 /* rbits, gbits, bbits, abits */ 00320 0, 0, 0, 0, 00321 /* Masks and shifts */ 00322 0, 0, 0, 0, 0, 0, 0, 0 00323 }, 00324 //----------------------------------------------------------------------- 00325 {"PF_DXT3", 00326 /* Bytes per element */ 00327 0, 00328 /* Flags */ 00329 PFF_COMPRESSED | PFF_HASALPHA, 00330 /* Component type and count */ 00331 PCT_BYTE, 4, 00332 /* rbits, gbits, bbits, abits */ 00333 0, 0, 0, 0, 00334 /* Masks and shifts */ 00335 0, 0, 0, 0, 0, 0, 0, 0 00336 }, 00337 //----------------------------------------------------------------------- 00338 {"PF_DXT4", 00339 /* Bytes per element */ 00340 0, 00341 /* Flags */ 00342 PFF_COMPRESSED | PFF_HASALPHA, 00343 /* Component type and count */ 00344 PCT_BYTE, 4, 00345 /* rbits, gbits, bbits, abits */ 00346 0, 0, 0, 0, 00347 /* Masks and shifts */ 00348 0, 0, 0, 0, 0, 0, 0, 0 00349 }, 00350 //----------------------------------------------------------------------- 00351 {"PF_DXT5", 00352 /* Bytes per element */ 00353 0, 00354 /* Flags */ 00355 PFF_COMPRESSED | PFF_HASALPHA, 00356 /* Component type and count */ 00357 PCT_BYTE, 4, 00358 /* rbits, gbits, bbits, abits */ 00359 0, 0, 0, 0, 00360 /* Masks and shifts */ 00361 0, 0, 0, 0, 0, 0, 0, 0 00362 }, 00363 //----------------------------------------------------------------------- 00364 {"PF_FLOAT16_RGB", 00365 /* Bytes per element */ 00366 6, 00367 /* Flags */ 00368 PFF_FLOAT, 00369 /* Component type and count */ 00370 PCT_FLOAT16, 3, 00371 /* rbits, gbits, bbits, abits */ 00372 16, 16, 16, 0, 00373 /* Masks and shifts */ 00374 0, 0, 0, 0, 0, 0, 0, 0 00375 }, 00376 //----------------------------------------------------------------------- 00377 {"PF_FLOAT16_RGBA", 00378 /* Bytes per element */ 00379 8, 00380 /* Flags */ 00381 PFF_FLOAT | PFF_HASALPHA, 00382 /* Component type and count */ 00383 PCT_FLOAT16, 4, 00384 /* rbits, gbits, bbits, abits */ 00385 16, 16, 16, 16, 00386 /* Masks and shifts */ 00387 0, 0, 0, 0, 0, 0, 0, 0 00388 }, 00389 //----------------------------------------------------------------------- 00390 {"PF_FLOAT32_RGB", 00391 /* Bytes per element */ 00392 12, 00393 /* Flags */ 00394 PFF_FLOAT, 00395 /* Component type and count */ 00396 PCT_FLOAT32, 3, 00397 /* rbits, gbits, bbits, abits */ 00398 32, 32, 32, 0, 00399 /* Masks and shifts */ 00400 0, 0, 0, 0, 0, 0, 0, 0 00401 }, 00402 //----------------------------------------------------------------------- 00403 {"PF_FLOAT32_RGBA", 00404 /* Bytes per element */ 00405 16, 00406 /* Flags */ 00407 PFF_FLOAT | PFF_HASALPHA, 00408 /* Component type and count */ 00409 PCT_FLOAT32, 4, 00410 /* rbits, gbits, bbits, abits */ 00411 32, 32, 32, 32, 00412 /* Masks and shifts */ 00413 0, 0, 0, 0, 0, 0, 0, 0 00414 }, 00415 //----------------------------------------------------------------------- 00416 {"PF_X8R8G8B8", 00417 /* Bytes per element */ 00418 4, 00419 /* Flags */ 00420 PFF_NATIVEENDIAN, 00421 /* Component type and count */ 00422 PCT_BYTE, 3, 00423 /* rbits, gbits, bbits, abits */ 00424 8, 8, 8, 0, 00425 /* Masks and shifts */ 00426 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000, 00427 16, 8, 0, 24 00428 }, 00429 //----------------------------------------------------------------------- 00430 {"PF_X8B8G8R8", 00431 /* Bytes per element */ 00432 4, 00433 /* Flags */ 00434 PFF_NATIVEENDIAN, 00435 /* Component type and count */ 00436 PCT_BYTE, 3, 00437 /* rbits, gbits, bbits, abits */ 00438 8, 8, 8, 0, 00439 /* Masks and shifts */ 00440 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000, 00441 0, 8, 16, 24 00442 }, 00443 //----------------------------------------------------------------------- 00444 {"PF_R8G8B8A8", 00445 /* Bytes per element */ 00446 4, 00447 /* Flags */ 00448 PFF_HASALPHA | PFF_NATIVEENDIAN, 00449 /* Component type and count */ 00450 PCT_BYTE, 4, 00451 /* rbits, gbits, bbits, abits */ 00452 8, 8, 8, 8, 00453 /* Masks and shifts */ 00454 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF, 00455 24, 16, 8, 0 00456 }, 00457 //----------------------------------------------------------------------- 00458 {"PF_DEPTH", 00459 /* Bytes per element */ 00460 4, 00461 /* Flags */ 00462 PFF_DEPTH, 00463 /* Component type and count */ 00464 PCT_FLOAT16, 1, // ? 00465 /* rbits, gbits, bbits, abits */ 00466 16, 0, 0, 0, 00467 /* Masks and shifts */ 00468 0, 0, 0, 0, 0, 0, 0, 0 00469 }, 00470 //----------------------------------------------------------------------- 00471 {"PF_SHORT_RGBA", 00472 /* Bytes per element */ 00473 8, 00474 /* Flags */ 00475 PFF_HASALPHA, 00476 /* Component type and count */ 00477 PCT_SHORT, 4, 00478 /* rbits, gbits, bbits, abits */ 00479 16, 16, 16, 16, 00480 /* Masks and shifts */ 00481 0, 0, 0, 0, 0, 0, 0, 0 00482 }, 00483 //----------------------------------------------------------------------- 00484 {"PF_R3G3B2", 00485 /* Bytes per element */ 00486 1, 00487 /* Flags */ 00488 PFF_NATIVEENDIAN, 00489 /* Component type and count */ 00490 PCT_BYTE, 3, 00491 /* rbits, gbits, bbits, abits */ 00492 3, 3, 2, 0, 00493 /* Masks and shifts */ 00494 0xE0, 0x1C, 0x03, 0, 00495 5, 2, 0, 0 00496 }, 00497 //----------------------------------------------------------------------- 00498 {"PF_FLOAT16_R", 00499 /* Bytes per element */ 00500 2, 00501 /* Flags */ 00502 PFF_FLOAT, 00503 /* Component type and count */ 00504 PCT_FLOAT16, 1, 00505 /* rbits, gbits, bbits, abits */ 00506 16, 0, 0, 0, 00507 /* Masks and shifts */ 00508 0, 0, 0, 0, 0, 0, 0, 0 00509 }, 00510 //----------------------------------------------------------------------- 00511 {"PF_FLOAT32_R", 00512 /* Bytes per element */ 00513 4, 00514 /* Flags */ 00515 PFF_FLOAT, 00516 /* Component type and count */ 00517 PCT_FLOAT32, 1, 00518 /* rbits, gbits, bbits, abits */ 00519 32, 0, 0, 0, 00520 /* Masks and shifts */ 00521 0, 0, 0, 0, 0, 0, 0, 0 00522 }, 00523 //----------------------------------------------------------------------- 00524 {"PF_SHORT_GR", 00525 /* Bytes per element */ 00526 4, 00527 /* Flags */ 00528 PFF_NATIVEENDIAN, 00529 /* Component type and count */ 00530 PCT_SHORT, 2, 00531 /* rbits, gbits, bbits, abits */ 00532 16, 16, 0, 0, 00533 /* Masks and shifts */ 00534 0x0000FFFF, 0xFFFF0000, 0, 0, 00535 0, 16, 0, 0 00536 }, 00537 //----------------------------------------------------------------------- 00538 {"PF_FLOAT16_GR", 00539 /* Bytes per element */ 00540 4, 00541 /* Flags */ 00542 PFF_FLOAT, 00543 /* Component type and count */ 00544 PCT_FLOAT16, 2, 00545 /* rbits, gbits, bbits, abits */ 00546 16, 16, 0, 0, 00547 /* Masks and shifts */ 00548 0, 0, 0, 0, 0, 0, 0, 0 00549 }, 00550 //----------------------------------------------------------------------- 00551 {"PF_FLOAT32_GR", 00552 /* Bytes per element */ 00553 8, 00554 /* Flags */ 00555 PFF_FLOAT, 00556 /* Component type and count */ 00557 PCT_FLOAT32, 2, 00558 /* rbits, gbits, bbits, abits */ 00559 32, 32, 0, 0, 00560 /* Masks and shifts */ 00561 0, 0, 0, 0, 0, 0, 0, 0 00562 }, 00563 //----------------------------------------------------------------------- 00564 {"PF_SHORT_RGB", 00565 /* Bytes per element */ 00566 6, 00567 /* Flags */ 00568 0, 00569 /* Component type and count */ 00570 PCT_SHORT, 3, 00571 /* rbits, gbits, bbits, abits */ 00572 16, 16, 16, 0, 00573 /* Masks and shifts */ 00574 0, 0, 0, 0, 0, 0, 0, 0 00575 }, 00576 //----------------------------------------------------------------------- 00577 {"PF_PVRTC_RGB2", 00578 /* Bytes per element */ 00579 0, 00580 /* Flags */ 00581 PFF_COMPRESSED, 00582 /* Component type and count */ 00583 PCT_BYTE, 3, 00584 /* rbits, gbits, bbits, abits */ 00585 0, 0, 0, 0, 00586 /* Masks and shifts */ 00587 0, 0, 0, 0, 0, 0, 0, 0 00588 }, 00589 //----------------------------------------------------------------------- 00590 {"PF_PVRTC_RGBA2", 00591 /* Bytes per element */ 00592 0, 00593 /* Flags */ 00594 PFF_COMPRESSED | PFF_HASALPHA, 00595 /* Component type and count */ 00596 PCT_BYTE, 4, 00597 /* rbits, gbits, bbits, abits */ 00598 0, 0, 0, 0, 00599 /* Masks and shifts */ 00600 0, 0, 0, 0, 0, 0, 0, 0 00601 }, 00602 //----------------------------------------------------------------------- 00603 {"PF_PVRTC_RGB4", 00604 /* Bytes per element */ 00605 0, 00606 /* Flags */ 00607 PFF_COMPRESSED, 00608 /* Component type and count */ 00609 PCT_BYTE, 3, 00610 /* rbits, gbits, bbits, abits */ 00611 0, 0, 0, 0, 00612 /* Masks and shifts */ 00613 0, 0, 0, 0, 0, 0, 0, 0 00614 }, 00615 //----------------------------------------------------------------------- 00616 {"PF_PVRTC_RGBA4", 00617 /* Bytes per element */ 00618 0, 00619 /* Flags */ 00620 PFF_COMPRESSED | PFF_HASALPHA, 00621 /* Component type and count */ 00622 PCT_BYTE, 4, 00623 /* rbits, gbits, bbits, abits */ 00624 0, 0, 0, 0, 00625 /* Masks and shifts */ 00626 0, 0, 0, 0, 0, 0, 0, 0 00627 }, 00628 //----------------------------------------------------------------------- 00629 {"PF_PVRTC2_2BPP", 00630 /* Bytes per element */ 00631 0, 00632 /* Flags */ 00633 PFF_COMPRESSED | PFF_HASALPHA, 00634 /* Component type and count */ 00635 PCT_BYTE, 4, 00636 /* rbits, gbits, bbits, abits */ 00637 0, 0, 0, 0, 00638 /* Masks and shifts */ 00639 0, 0, 0, 0, 0, 0, 0, 0 00640 }, 00641 //----------------------------------------------------------------------- 00642 {"PF_PVRTC2_4BPP", 00643 /* Bytes per element */ 00644 0, 00645 /* Flags */ 00646 PFF_COMPRESSED | PFF_HASALPHA, 00647 /* Component type and count */ 00648 PCT_BYTE, 4, 00649 /* rbits, gbits, bbits, abits */ 00650 0, 0, 0, 0, 00651 /* Masks and shifts */ 00652 0, 0, 0, 0, 0, 0, 0, 0 00653 }, 00654 //----------------------------------------------------------------------- 00655 {"PF_R11G11B10_FLOAT", 00656 /* Bytes per element */ 00657 4, 00658 /* Flags */ 00659 PFF_FLOAT | PFF_NATIVEENDIAN, 00660 /* Component type and count */ 00661 PCT_FLOAT32, 1, 00662 /* rbits, gbits, bbits, abits */ 00663 11, 11, 10, 0, 00664 /* Masks and shifts */ 00665 0xFFC00000, 0x03FF800, 0x000007FF, 0, 00666 24, 16, 8, 0 00667 }, 00668 //----------------------------------------------------------------------- 00669 {"PF_R8_UINT", 00670 /* Bytes per element */ 00671 1, 00672 /* Flags */ 00673 PFF_INTEGER | PFF_NATIVEENDIAN, 00674 /* Component type and count */ 00675 PCT_UINT, 1, 00676 /* rbits, gbits, bbits, abits */ 00677 8, 0, 0, 0, 00678 /* Masks and shifts */ 00679 0xFF, 0, 0, 0, 00680 0, 0, 0, 0 00681 }, 00682 //----------------------------------------------------------------------- 00683 {"PF_R8G8_UINT", 00684 /* Bytes per element */ 00685 2, 00686 /* Flags */ 00687 PFF_INTEGER | PFF_NATIVEENDIAN, 00688 /* Component type and count */ 00689 PCT_UINT, 2, 00690 /* rbits, gbits, bbits, abits */ 00691 8, 8, 0, 0, 00692 /* Masks and shifts */ 00693 0xFF00, 0x00FF, 0, 0, 00694 8, 0, 0, 0 00695 }, 00696 //----------------------------------------------------------------------- 00697 {"PF_R8G8B8_UINT", 00698 /* Bytes per element */ 00699 3, 00700 /* Flags */ 00701 PFF_INTEGER | PFF_NATIVEENDIAN, 00702 /* Component type and count */ 00703 PCT_UINT, 3, 00704 /* rbits, gbits, bbits, abits */ 00705 8, 8, 8, 0, 00706 /* Masks and shifts */ 00707 0xFF0000, 0x00FF00, 0x0000FF, 0, 00708 16, 8, 0, 0 00709 }, 00710 //----------------------------------------------------------------------- 00711 {"PF_R8G8B8A8_UINT", 00712 /* Bytes per element */ 00713 4, 00714 /* Flags */ 00715 PFF_INTEGER | PFF_HASALPHA | PFF_NATIVEENDIAN, 00716 /* Component type and count */ 00717 PCT_UINT, 4, 00718 /* rbits, gbits, bbits, abits */ 00719 8, 8, 8, 8, 00720 /* Masks and shifts */ 00721 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF, 00722 24, 16, 8, 0 00723 }, 00724 //----------------------------------------------------------------------- 00725 {"PF_R16_UINT", 00726 /* Bytes per element */ 00727 2, 00728 /* Flags */ 00729 PFF_INTEGER | PFF_NATIVEENDIAN, 00730 /* Component type and count */ 00731 PCT_UINT, 1, 00732 /* rbits, gbits, bbits, abits */ 00733 16, 0, 0, 0, 00734 /* Masks and shifts */ 00735 0xFFFF, 0, 0, 0, 00736 0, 0, 0, 0 00737 }, 00738 //----------------------------------------------------------------------- 00739 {"PF_R16G16_UINT", 00740 /* Bytes per element */ 00741 4, 00742 /* Flags */ 00743 PFF_INTEGER | PFF_NATIVEENDIAN, 00744 /* Component type and count */ 00745 PCT_UINT, 2, 00746 /* rbits, gbits, bbits, abits */ 00747 16, 16, 0, 0, 00748 /* Masks and shifts */ 00749 0xFFFF0000, 0x0000FFFF, 0, 0, 00750 16, 0, 0, 0 00751 }, 00752 //----------------------------------------------------------------------- 00753 {"PF_R16G16B16_UINT", 00754 /* Bytes per element */ 00755 6, 00756 /* Flags */ 00757 PFF_INTEGER | PFF_NATIVEENDIAN, 00758 /* Component type and count */ 00759 PCT_UINT, 3, 00760 /* rbits, gbits, bbits, abits */ 00761 16, 16, 16, 0, 00762 /* Masks and shifts */ 00763 0xFFFF00000000, 0x0000FFFF0000, 0x00000000FFFF, 0, 00764 32, 16, 0, 0 00765 }, 00766 //----------------------------------------------------------------------- 00767 {"PF_R16G16B16A16_UINT", 00768 /* Bytes per element */ 00769 8, 00770 /* Flags */ 00771 PFF_INTEGER | PFF_HASALPHA | PFF_NATIVEENDIAN, 00772 /* Component type and count */ 00773 PCT_UINT, 4, 00774 /* rbits, gbits, bbits, abits */ 00775 16, 16, 16, 16, 00776 /* Masks and shifts */ 00777 0xFFFF000000000000, 0x0000FFFF00000000, 0x00000000FFFF0000, 0x000000000000FFFF, 00778 48, 32, 16, 0 00779 }, 00780 //----------------------------------------------------------------------- 00781 {"PF_R32_UINT", 00782 /* Bytes per element */ 00783 4, 00784 /* Flags */ 00785 PFF_INTEGER | PFF_NATIVEENDIAN, 00786 /* Component type and count */ 00787 PCT_UINT, 1, 00788 /* rbits, gbits, bbits, abits */ 00789 32, 0, 0, 0, 00790 /* Masks and shifts */ 00791 0xFFFFFFFF, 0, 0, 0, 00792 0, 0, 0, 0 00793 }, 00794 //----------------------------------------------------------------------- 00795 {"PF_R32G32_UINT", 00796 /* Bytes per element */ 00797 8, 00798 /* Flags */ 00799 PFF_INTEGER | PFF_NATIVEENDIAN, 00800 /* Component type and count */ 00801 PCT_UINT, 2, 00802 /* rbits, gbits, bbits, abits */ 00803 32, 32, 0, 0, 00804 /* Masks and shifts */ 00805 0xFFFFFFFF00000000, 0xFFFFFFFF, 0, 0, 00806 32, 0, 0, 0 00807 }, 00808 //----------------------------------------------------------------------- 00809 {"PF_R32G32B32_UINT", 00810 /* Bytes per element */ 00811 12, 00812 /* Flags */ 00813 PFF_INTEGER | PFF_NATIVEENDIAN, 00814 /* Component type and count */ 00815 PCT_UINT, 3, 00816 /* rbits, gbits, bbits, abits */ 00817 32, 32, 32, 0, 00818 /* Masks and shifts */ 00819 0, 0, 0, 0, 00820 64, 32, 0, 0 00821 }, 00822 //----------------------------------------------------------------------- 00823 {"PF_R32G32B32A32_UINT", 00824 /* Bytes per element */ 00825 16, 00826 /* Flags */ 00827 PFF_INTEGER | PFF_HASALPHA | PFF_NATIVEENDIAN, 00828 /* Component type and count */ 00829 PCT_UINT, 4, 00830 /* rbits, gbits, bbits, abits */ 00831 32, 32, 32, 32, 00832 /* Masks and shifts */ 00833 0, 0, 0, 0, 00834 96, 64, 32, 0 00835 }, 00836 //----------------------------------------------------------------------- 00837 {"PF_R8_SINT", 00838 /* Bytes per element */ 00839 1, 00840 /* Flags */ 00841 PFF_INTEGER | PFF_NATIVEENDIAN, 00842 /* Component type and count */ 00843 PCT_SINT, 1, 00844 /* rbits, gbits, bbits, abits */ 00845 8, 0, 0, 0, 00846 /* Masks and shifts */ 00847 0xFF, 0, 0, 0, 00848 0, 0, 0, 0 00849 }, 00850 //----------------------------------------------------------------------- 00851 {"PF_R8G8_SINT", 00852 /* Bytes per element */ 00853 2, 00854 /* Flags */ 00855 PFF_INTEGER | PFF_NATIVEENDIAN, 00856 /* Component type and count */ 00857 PCT_SINT, 2, 00858 /* rbits, gbits, bbits, abits */ 00859 8, 8, 0, 0, 00860 /* Masks and shifts */ 00861 0xFF00, 0x00FF, 0, 0, 00862 8, 0, 0, 0 00863 }, 00864 //----------------------------------------------------------------------- 00865 {"PF_R8G8B8_SINT", 00866 /* Bytes per element */ 00867 3, 00868 /* Flags */ 00869 PFF_INTEGER | PFF_NATIVEENDIAN, 00870 /* Component type and count */ 00871 PCT_SINT, 3, 00872 /* rbits, gbits, bbits, abits */ 00873 8, 8, 8, 0, 00874 /* Masks and shifts */ 00875 0xFF0000, 0x00FF00, 0x0000FF, 0, 00876 16, 8, 0, 0 00877 }, 00878 //----------------------------------------------------------------------- 00879 {"PF_R8G8B8A8_SINT", 00880 /* Bytes per element */ 00881 4, 00882 /* Flags */ 00883 PFF_INTEGER | PFF_HASALPHA | PFF_NATIVEENDIAN, 00884 /* Component type and count */ 00885 PCT_SINT, 4, 00886 /* rbits, gbits, bbits, abits */ 00887 8, 8, 8, 8, 00888 /* Masks and shifts */ 00889 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF, 00890 24, 16, 8, 0 00891 }, 00892 //----------------------------------------------------------------------- 00893 {"PF_R16_SINT", 00894 /* Bytes per element */ 00895 2, 00896 /* Flags */ 00897 PFF_INTEGER | PFF_NATIVEENDIAN, 00898 /* Component type and count */ 00899 PCT_SINT, 1, 00900 /* rbits, gbits, bbits, abits */ 00901 16, 0, 0, 0, 00902 /* Masks and shifts */ 00903 0xFFFF, 0, 0, 0, 00904 0, 0, 0, 0 00905 }, 00906 //----------------------------------------------------------------------- 00907 {"PF_R16G16_SINT", 00908 /* Bytes per element */ 00909 4, 00910 /* Flags */ 00911 PFF_INTEGER | PFF_NATIVEENDIAN, 00912 /* Component type and count */ 00913 PCT_SINT, 2, 00914 /* rbits, gbits, bbits, abits */ 00915 16, 16, 0, 0, 00916 /* Masks and shifts */ 00917 0xFFFF0000, 0x0000FFFF, 0, 0, 00918 16, 0, 0, 0 00919 }, 00920 //----------------------------------------------------------------------- 00921 {"PF_R16G16B16_SINT", 00922 /* Bytes per element */ 00923 6, 00924 /* Flags */ 00925 PFF_INTEGER | PFF_NATIVEENDIAN, 00926 /* Component type and count */ 00927 PCT_SINT, 3, 00928 /* rbits, gbits, bbits, abits */ 00929 16, 16, 16, 0, 00930 /* Masks and shifts */ 00931 0xFFFF00000000, 0x0000FFFF0000, 0x00000000FFFF, 0, 00932 32, 16, 0, 0 00933 }, 00934 //----------------------------------------------------------------------- 00935 {"PF_R16G16B16A16_SINT", 00936 /* Bytes per element */ 00937 8, 00938 /* Flags */ 00939 PFF_INTEGER | PFF_HASALPHA | PFF_NATIVEENDIAN, 00940 /* Component type and count */ 00941 PCT_SINT, 4, 00942 /* rbits, gbits, bbits, abits */ 00943 16, 16, 16, 16, 00944 /* Masks and shifts */ 00945 0xFFFF000000000000, 0x0000FFFF00000000, 0x00000000FFFF0000, 0x000000000000FFFF, 00946 48, 32, 16, 0 00947 }, 00948 //----------------------------------------------------------------------- 00949 {"PF_R32_SINT", 00950 /* Bytes per element */ 00951 4, 00952 /* Flags */ 00953 PFF_INTEGER | PFF_NATIVEENDIAN, 00954 /* Component type and count */ 00955 PCT_SINT, 1, 00956 /* rbits, gbits, bbits, abits */ 00957 32, 0, 0, 0, 00958 /* Masks and shifts */ 00959 0xFFFFFFFF, 0, 0, 0, 00960 0, 0, 0, 0 00961 }, 00962 //----------------------------------------------------------------------- 00963 {"PF_R32G32_SINT", 00964 /* Bytes per element */ 00965 8, 00966 /* Flags */ 00967 PFF_INTEGER | PFF_NATIVEENDIAN, 00968 /* Component type and count */ 00969 PCT_SINT, 2, 00970 /* rbits, gbits, bbits, abits */ 00971 32, 32, 0, 0, 00972 /* Masks and shifts */ 00973 0xFFFFFFFF00000000, 0xFFFFFFFF, 0, 0, 00974 32, 0, 0, 0 00975 }, 00976 //----------------------------------------------------------------------- 00977 {"PF_R32G32B32_SINT", 00978 /* Bytes per element */ 00979 12, 00980 /* Flags */ 00981 PFF_INTEGER | PFF_NATIVEENDIAN, 00982 /* Component type and count */ 00983 PCT_SINT, 3, 00984 /* rbits, gbits, bbits, abits */ 00985 32, 32, 32, 0, 00986 /* Masks and shifts */ 00987 0, 0, 0, 0, 00988 64, 32, 0, 0 00989 }, 00990 //----------------------------------------------------------------------- 00991 {"PF_R32G32B32A32_SINT", 00992 /* Bytes per element */ 00993 16, 00994 /* Flags */ 00995 PFF_INTEGER | PFF_HASALPHA | PFF_NATIVEENDIAN, 00996 /* Component type and count */ 00997 PCT_SINT, 4, 00998 /* rbits, gbits, bbits, abits */ 00999 32, 32, 32, 32, 01000 /* Masks and shifts */ 01001 0, 0, 0, 0, 01002 96, 64, 32, 0 01003 }, 01004 //----------------------------------------------------------------------- 01005 {"PF_R9G9B9E5_SHAREDEXP", 01006 /* Bytes per element */ 01007 4, 01008 /* Flags */ 01009 PFF_NATIVEENDIAN, 01010 /* Component type and count */ 01011 PCT_BYTE, 4, 01012 /* rbits, gbits, bbits, abits */ 01013 9, 9, 9, 0, 01014 /* Masks and shifts */ 01015 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF, 01016 24, 16, 8, 0 01017 }, 01018 //----------------------------------------------------------------------- 01019 {"PF_BC4_UNORM", 01020 /* Bytes per element */ 01021 0, 01022 /* Flags */ 01023 PFF_COMPRESSED, 01024 /* Component type and count */ 01025 PCT_BYTE, 1, // Red only 01026 /* rbits, gbits, bbits, abits */ 01027 0, 0, 0, 0, 01028 /* Masks and shifts */ 01029 0, 0, 0, 0, 0, 0, 0, 0 01030 }, 01031 //----------------------------------------------------------------------- 01032 {"PF_BC4_SNORM", 01033 /* Bytes per element */ 01034 0, 01035 /* Flags */ 01036 PFF_COMPRESSED, 01037 /* Component type and count */ 01038 PCT_BYTE, 1, // Red only 01039 /* rbits, gbits, bbits, abits */ 01040 0, 0, 0, 0, 01041 /* Masks and shifts */ 01042 0, 0, 0, 0, 0, 0, 0, 0 01043 }, 01044 //----------------------------------------------------------------------- 01045 {"PF_BC5_UNORM", 01046 /* Bytes per element */ 01047 0, 01048 /* Flags */ 01049 PFF_COMPRESSED, 01050 /* Component type and count */ 01051 PCT_BYTE, 2, // Red-Green only 01052 /* rbits, gbits, bbits, abits */ 01053 0, 0, 0, 0, 01054 /* Masks and shifts */ 01055 0, 0, 0, 0, 0, 0, 0, 0 01056 }, 01057 //----------------------------------------------------------------------- 01058 {"PF_BC5_SNORM", 01059 /* Bytes per element */ 01060 0, 01061 /* Flags */ 01062 PFF_COMPRESSED, 01063 /* Component type and count */ 01064 PCT_BYTE, 2, // Red-Green only 01065 /* rbits, gbits, bbits, abits */ 01066 0, 0, 0, 0, 01067 /* Masks and shifts */ 01068 0, 0, 0, 0, 0, 0, 0, 0 01069 }, 01070 //----------------------------------------------------------------------- 01071 {"PF_BC6H_UF16", 01072 /* Bytes per element */ 01073 0, 01074 /* Flags */ 01075 PFF_COMPRESSED, 01076 /* Component type and count */ 01077 PCT_BYTE, 3, 01078 /* rbits, gbits, bbits, abits */ 01079 0, 0, 0, 0, 01080 /* Masks and shifts */ 01081 0, 0, 0, 0, 0, 0, 0, 0 01082 }, 01083 //----------------------------------------------------------------------- 01084 {"PF_BC6H_SF16", 01085 /* Bytes per element */ 01086 0, 01087 /* Flags */ 01088 PFF_COMPRESSED, 01089 /* Component type and count */ 01090 PCT_BYTE, 3, 01091 /* rbits, gbits, bbits, abits */ 01092 0, 0, 0, 0, 01093 /* Masks and shifts */ 01094 0, 0, 0, 0, 0, 0, 0, 0 01095 }, 01096 //----------------------------------------------------------------------- 01097 {"PF_BC7_UNORM", 01098 /* Bytes per element */ 01099 0, 01100 /* Flags */ 01101 PFF_COMPRESSED | PFF_HASALPHA, 01102 /* Component type and count */ 01103 PCT_BYTE, 4, 01104 /* rbits, gbits, bbits, abits */ 01105 0, 0, 0, 0, 01106 /* Masks and shifts */ 01107 0, 0, 0, 0, 0, 0, 0, 0 01108 }, 01109 //----------------------------------------------------------------------- 01110 {"PF_BC7_UNORM_SRGB", 01111 /* Bytes per element */ 01112 0, 01113 /* Flags */ 01114 PFF_COMPRESSED | PFF_HASALPHA, 01115 /* Component type and count */ 01116 PCT_BYTE, 4, 01117 /* rbits, gbits, bbits, abits */ 01118 0, 0, 0, 0, 01119 /* Masks and shifts */ 01120 0, 0, 0, 0, 0, 0, 0, 0 01121 }, 01122 //----------------------------------------------------------------------- 01123 {"PF_R8", 01124 /* Bytes per element */ 01125 1, 01126 /* Flags */ 01127 PFF_NATIVEENDIAN, 01128 /* Component type and count */ 01129 PCT_BYTE, 1, 01130 /* rbits, gbits, bbits, abits */ 01131 8, 0, 0, 0, 01132 /* Masks and shifts */ 01133 0xFF, 0, 0, 0, 01134 0, 0, 0, 0 01135 }, 01136 //----------------------------------------------------------------------- 01137 {"PF_RG8", 01138 /* Bytes per element */ 01139 2, 01140 /* Flags */ 01141 PFF_NATIVEENDIAN, 01142 /* Component type and count */ 01143 PCT_BYTE, 2, 01144 /* rbits, gbits, bbits, abits */ 01145 8, 8, 0, 0, 01146 /* Masks and shifts */ 01147 0xFF0000, 0x00FF00, 0, 0, 01148 8, 0, 0, 0 01149 }, 01150 //----------------------------------------------------------------------- 01151 {"PF_R8_SNORM", 01152 /* Bytes per element */ 01153 1, 01154 /* Flags */ 01155 PFF_NATIVEENDIAN, 01156 /* Component type and count */ 01157 PCT_BYTE, 1, 01158 /* rbits, gbits, bbits, abits */ 01159 8, 0, 0, 0, 01160 /* Masks and shifts */ 01161 0xFF, 0, 0, 0, 01162 0, 0, 0, 0 01163 }, 01164 //----------------------------------------------------------------------- 01165 {"PF_R8G8_SNORM", 01166 /* Bytes per element */ 01167 2, 01168 /* Flags */ 01169 PFF_NATIVEENDIAN, 01170 /* Component type and count */ 01171 PCT_BYTE, 2, 01172 /* rbits, gbits, bbits, abits */ 01173 8, 8, 0, 0, 01174 /* Masks and shifts */ 01175 0xFF00, 0x00FF, 0, 0, 01176 8, 0, 0, 0 01177 }, 01178 //----------------------------------------------------------------------- 01179 {"PF_R8G8B8_SNORM", 01180 /* Bytes per element */ 01181 3, 01182 /* Flags */ 01183 PFF_NATIVEENDIAN, 01184 /* Component type and count */ 01185 PCT_BYTE, 3, 01186 /* rbits, gbits, bbits, abits */ 01187 8, 8, 8, 0, 01188 /* Masks and shifts */ 01189 0xFF0000, 0x00FF00, 0x0000FF, 0, 01190 16, 8, 0, 0 01191 }, 01192 //----------------------------------------------------------------------- 01193 {"PF_R8G8B8A8_SNORM", 01194 /* Bytes per element */ 01195 4, 01196 /* Flags */ 01197 PFF_HASALPHA | PFF_NATIVEENDIAN, 01198 /* Component type and count */ 01199 PCT_BYTE, 4, 01200 /* rbits, gbits, bbits, abits */ 01201 8, 8, 8, 8, 01202 /* Masks and shifts */ 01203 0xFF000000, 0x00FF0000, 0x0000FF00, 0x000000FF, 01204 24, 16, 8, 0 01205 }, 01206 //----------------------------------------------------------------------- 01207 {"PF_R16_SNORM", 01208 /* Bytes per element */ 01209 2, 01210 /* Flags */ 01211 PFF_NATIVEENDIAN, 01212 /* Component type and count */ 01213 PCT_BYTE, 1, 01214 /* rbits, gbits, bbits, abits */ 01215 16, 0, 0, 0, 01216 /* Masks and shifts */ 01217 0xFFFF, 0, 0, 0, 01218 0, 0, 0, 0 01219 }, 01220 //----------------------------------------------------------------------- 01221 {"PF_R16G16_SNORM", 01222 /* Bytes per element */ 01223 4, 01224 /* Flags */ 01225 PFF_NATIVEENDIAN, 01226 /* Component type and count */ 01227 PCT_BYTE, 2, 01228 /* rbits, gbits, bbits, abits */ 01229 16, 16, 0, 0, 01230 /* Masks and shifts */ 01231 0xFFFF0000, 0x0000FFFF, 0, 0, 01232 16, 0, 0, 0 01233 }, 01234 //----------------------------------------------------------------------- 01235 {"PF_R16G16B16_SNORM", 01236 /* Bytes per element */ 01237 6, 01238 /* Flags */ 01239 PFF_NATIVEENDIAN, 01240 /* Component type and count */ 01241 PCT_BYTE, 3, 01242 /* rbits, gbits, bbits, abits */ 01243 16, 16, 16, 0, 01244 /* Masks and shifts */ 01245 0xFFFF00000000, 0x0000FFFF0000, 0x00000000FFFF, 0, 01246 32, 16, 0, 0 01247 }, 01248 //----------------------------------------------------------------------- 01249 {"PF_R16G16B16A16_SNORM", 01250 /* Bytes per element */ 01251 8, 01252 /* Flags */ 01253 PFF_HASALPHA | PFF_NATIVEENDIAN, 01254 /* Component type and count */ 01255 PCT_BYTE, 4, 01256 /* rbits, gbits, bbits, abits */ 01257 16, 16, 16, 16, 01258 /* Masks and shifts */ 01259 0xFFFF000000000000, 0x0000FFFF00000000, 0x00000000FFFF0000, 0x000000000000FFFF, 01260 48, 32, 16, 0 01261 }, 01262 01263 //----------------------------------------------------------------------- 01264 {"PF_ETC1_RGB8", 01265 /* Bytes per element */ 01266 0, 01267 /* Flags */ 01268 PFF_COMPRESSED, 01269 /* Component type and count */ 01270 PCT_BYTE, 3, 01271 /* rbits, gbits, bbits, abits */ 01272 0, 0, 0, 0, 01273 /* Masks and shifts */ 01274 0, 0, 0, 0, 0, 0, 0, 0 01275 }, 01276 //----------------------------------------------------------------------- 01277 {"PF_ETC2_RGB8", 01278 /* Bytes per element */ 01279 0, 01280 /* Flags */ 01281 PFF_COMPRESSED, 01282 /* Component type and count */ 01283 PCT_BYTE, 3, 01284 /* rbits, gbits, bbits, abits */ 01285 0, 0, 0, 0, 01286 /* Masks and shifts */ 01287 0, 0, 0, 0, 0, 0, 0, 0 01288 }, 01289 //----------------------------------------------------------------------- 01290 {"PF_ETC2_RGBA8", 01291 /* Bytes per element */ 01292 0, 01293 /* Flags */ 01294 PFF_COMPRESSED | PFF_HASALPHA, 01295 /* Component type and count */ 01296 PCT_BYTE, 4, 01297 /* rbits, gbits, bbits, abits */ 01298 0, 0, 0, 0, 01299 /* Masks and shifts */ 01300 0, 0, 0, 0, 0, 0, 0, 0 01301 }, 01302 //----------------------------------------------------------------------- 01303 {"PF_ETC2_RGB8A1", 01304 /* Bytes per element */ 01305 0, 01306 /* Flags */ 01307 PFF_COMPRESSED | PFF_HASALPHA, 01308 /* Component type and count */ 01309 PCT_BYTE, 4, 01310 /* rbits, gbits, bbits, abits */ 01311 0, 0, 0, 0, 01312 /* Masks and shifts */ 01313 0, 0, 0, 0, 0, 0, 0, 0 01314 }, 01315 //----------------------------------------------------------------------- 01316 {"PF_ATC_RGB", 01317 /* Bytes per element */ 01318 0, 01319 /* Flags */ 01320 PFF_COMPRESSED, 01321 /* Component type and count */ 01322 PCT_BYTE, 3, 01323 /* rbits, gbits, bbits, abits */ 01324 0, 0, 0, 0, 01325 /* Masks and shifts */ 01326 0, 0, 0, 0, 0, 0, 0, 0 01327 }, 01328 //----------------------------------------------------------------------- 01329 {"PF_ATC_RGBA_EXPLICIT_ALPHA", 01330 /* Bytes per element */ 01331 0, 01332 /* Flags */ 01333 PFF_COMPRESSED | PFF_HASALPHA, 01334 /* Component type and count */ 01335 PCT_BYTE, 4, 01336 /* rbits, gbits, bbits, abits */ 01337 0, 0, 0, 0, 01338 /* Masks and shifts */ 01339 0, 0, 0, 0, 0, 0, 0, 0 01340 }, 01341 //----------------------------------------------------------------------- 01342 {"PF_ATC_RGBA_INTERPOLATED_ALPHA", 01343 /* Bytes per element */ 01344 0, 01345 /* Flags */ 01346 PFF_COMPRESSED | PFF_HASALPHA, 01347 /* Component type and count */ 01348 PCT_BYTE, 4, 01349 /* rbits, gbits, bbits, abits */ 01350 0, 0, 0, 0, 01351 /* Masks and shifts */ 01352 0, 0, 0, 0, 0, 0, 0, 0 01353 } 01354 }; 01358 } 01359 01360 #include "OgreHeaderSuffix.h" 01361 01362 #endif
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jul 27 2020 13:40:44