Lines Matching refs:TextureFormat
102 bool isSRGB (TextureFormat format)
105 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22);
107 return format.order == TextureFormat::sR ||
108 format.order == TextureFormat::sRG ||
109 format.order == TextureFormat::sRGB ||
110 format.order == TextureFormat::sRGBA ||
111 format.order == TextureFormat::sBGR ||
112 format.order == TextureFormat::sBGRA;
115 tcu::Vec4 linearToSRGBIfNeeded (const TextureFormat& format, const tcu::Vec4& color)
120 bool isCombinedDepthStencilType (TextureFormat::ChannelType type)
123 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48);
125 return type == TextureFormat::UNSIGNED_INT_16_8_8 ||
126 type == TextureFormat::UNSIGNED_INT_24_8 ||
127 type == TextureFormat::UNSIGNED_INT_24_8_REV ||
128 type == TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV;
131 bool hasStencilComponent (TextureFormat::ChannelOrder order)
133 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22);
137 case TextureFormat::S:
138 case TextureFormat::DS:
146 bool hasDepthComponent (TextureFormat::ChannelOrder order)
148 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22);
152 case TextureFormat::D:
153 case TextureFormat::DS:
162 TextureChannelClass getTextureChannelClass (TextureFormat::ChannelType channelType)
165 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48);
169 case TextureFormat::SNORM_INT8: return TEXTURECHANNELCLASS_SIGNED_FIXED_POINT;
170 case TextureFormat::SNORM_INT16: return TEXTURECHANNELCLASS_SIGNED_FIXED_POINT;
171 case TextureFormat::SNORM_INT32: return TEXTURECHANNELCLASS_SIGNED_FIXED_POINT;
172 case TextureFormat::UNORM_INT8: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
173 case TextureFormat::UNORM_INT16: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
174 case TextureFormat::UNORM_INT24: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
175 case TextureFormat::UNORM_INT32: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
176 case TextureFormat::UNORM_BYTE_44: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
177 case TextureFormat::UNORM_SHORT_565: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
178 case TextureFormat::UNORM_SHORT_555: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
179 case TextureFormat::UNORM_SHORT_4444: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
180 case TextureFormat::UNORM_SHORT_5551: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
181 case TextureFormat::UNORM_SHORT_1555: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
182 case TextureFormat::UNSIGNED_BYTE_44: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
183 case TextureFormat::UNSIGNED_SHORT_565: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
184 case TextureFormat::UNSIGNED_SHORT_4444: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
185 case TextureFormat::UNSIGNED_SHORT_5551: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
186 case TextureFormat::UNORM_INT_101010: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
187 case TextureFormat::SNORM_INT_1010102_REV: return TEXTURECHANNELCLASS_SIGNED_FIXED_POINT;
188 case TextureFormat::UNORM_INT_1010102_REV: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
189 case TextureFormat::SIGNED_INT_1010102_REV: return TEXTURECHANNELCLASS_SIGNED_INTEGER;
190 case TextureFormat::UNSIGNED_INT_1010102_REV: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
191 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return TEXTURECHANNELCLASS_FLOATING_POINT;
192 case TextureFormat::UNSIGNED_INT_999_E5_REV: return TEXTURECHANNELCLASS_FLOATING_POINT;
193 case TextureFormat::UNSIGNED_INT_16_8_8: return TEXTURECHANNELCLASS_LAST; //!< packed unorm16-x8-uint8
194 case TextureFormat::UNSIGNED_INT_24_8: return TEXTURECHANNELCLASS_LAST; //!< packed unorm24-uint8
195 case TextureFormat::UNSIGNED_INT_24_8_REV: return TEXTURECHANNELCLASS_LAST; //!< packed unorm24-uint8
196 case TextureFormat::SIGNED_INT8: return TEXTURECHANNELCLASS_SIGNED_INTEGER;
197 case TextureFormat::SIGNED_INT16: return TEXTURECHANNELCLASS_SIGNED_INTEGER;
198 case TextureFormat::SIGNED_INT32: return TEXTURECHANNELCLASS_SIGNED_INTEGER;
199 case TextureFormat::SIGNED_INT64: return TEXTURECHANNELCLASS_SIGNED_INTEGER;
200 case TextureFormat::UNSIGNED_INT8: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
201 case TextureFormat::UNSIGNED_INT16: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
202 case TextureFormat::UNSIGNED_INT24: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
203 case TextureFormat::UNSIGNED_INT32: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
204 case TextureFormat::UNSIGNED_INT64: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
205 case TextureFormat::HALF_FLOAT: return TEXTURECHANNELCLASS_FLOATING_POINT;
206 case TextureFormat::FLOAT: return TEXTURECHANNELCLASS_FLOATING_POINT;
207 case TextureFormat::FLOAT64: return TEXTURECHANNELCLASS_FLOATING_POINT;
208 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return TEXTURECHANNELCLASS_LAST; //!< packed float32-pad24-uint8
209 case TextureFormat::UNORM_SHORT_10: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
210 case TextureFormat::UNORM_SHORT_12: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT;
211 case TextureFormat::USCALED_INT8: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
212 case TextureFormat::USCALED_INT16: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
213 case TextureFormat::SSCALED_INT8: return TEXTURECHANNELCLASS_SIGNED_INTEGER;
214 case TextureFormat::SSCALED_INT16: return TEXTURECHANNELCLASS_SIGNED_INTEGER;
215 case TextureFormat::USCALED_INT_1010102_REV: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER;
216 case TextureFormat::SSCALED_INT_1010102_REV: return TEXTURECHANNELCLASS_SIGNED_INTEGER;
223 bool isAccessValid (TextureFormat format, TextureAccessType type)
227 if (format.order == TextureFormat::DS)
234 else if (format.order == TextureFormat::D)
236 else if (format.order == TextureFormat::S)
241 if (format.type == TextureFormat::UNSIGNED_INT_11F_11F_10F_REV ||
242 format.type == TextureFormat::UNSIGNED_INT_999_E5_REV)
359 static Vec2 getFloatChannelValueRange (TextureFormat::ChannelType channelType)
362 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48);
370 case TextureFormat::SNORM_INT8:
371 case TextureFormat::SNORM_INT16:
372 case TextureFormat::SNORM_INT32:
373 case TextureFormat::SNORM_INT_1010102_REV: cMin = -1.0f; cMax = 1.0f; break;
376 case TextureFormat::UNORM_INT8:
377 case TextureFormat::UNORM_INT16:
378 case TextureFormat::UNORM_INT24:
379 case TextureFormat::UNORM_INT32:
380 case TextureFormat::UNORM_BYTE_44:
381 case TextureFormat::UNORM_SHORT_565:
382 case TextureFormat::UNORM_SHORT_555:
383 case TextureFormat::UNORM_SHORT_4444:
384 case TextureFormat::UNORM_SHORT_5551:
385 case TextureFormat::UNORM_SHORT_1555:
386 case TextureFormat::UNORM_INT_101010:
387 case TextureFormat::UNORM_INT_1010102_REV:
388 case TextureFormat::UNORM_SHORT_10:
389 case TextureFormat::UNORM_SHORT_12: cMin = 0.0f; cMax = 1.0f; break;
392 case TextureFormat::SIGNED_INT8: cMin = -128.0f; cMax = 127.0f; break;
393 case TextureFormat::SIGNED_INT16: cMin = -32768.0f; cMax = 32767.0f; break;
394 case TextureFormat::SIGNED_INT32: cMin = -2147483520.0f; cMax = 2147483520.0f; break; // Maximum exactly representable 31-bit integer: (2^24 - 1) * 2^7
395 case TextureFormat::UNSIGNED_INT8: cMin = 0.0f; cMax = 255.0f; break;
396 case TextureFormat::UNSIGNED_INT16: cMin = 0.0f; cMax = 65535.0f; break;
397 case TextureFormat::UNSIGNED_INT24: cMin = 0.0f; cMax = 16777215.0f; break;
398 case TextureFormat::UNSIGNED_INT32: cMin = 0.0f; cMax = 4294967040.f; break; // Maximum exactly representable 32-bit integer: (2^24 - 1) * 2^8
399 case TextureFormat::HALF_FLOAT: cMin = -1e3f; cMax = 1e3f; break;
400 case TextureFormat::FLOAT: cMin = -1e5f; cMax = 1e5f; break;
401 case TextureFormat::FLOAT64: cMin = -1e5f; cMax = 1e5f; break;
402 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: cMin = 0.0f; cMax = 1e4f; break;
403 case TextureFormat::UNSIGNED_INT_999_E5_REV: cMin = 0.0f; cMax = 0.5e5f; break;
404 case TextureFormat::UNSIGNED_BYTE_44: cMin = 0.0f; cMax = 15.f; break;
405 case TextureFormat::UNSIGNED_SHORT_4444: cMin = 0.0f; cMax = 15.f; break;
406 case TextureFormat::USCALED_INT8: cMin = 0.0f; cMax = 255.0f; break;
407 case TextureFormat::USCALED_INT16: cMin = 0.0f; cMax = 65535.0f; break;
408 case TextureFormat::SSCALED_INT8: cMin = -128.0f; cMax = 127.0f; break;
409 case TextureFormat::SSCALED_INT16: cMin = -32768.0f; cMax = 32767.0f; break;
410 case TextureFormat::USCALED_INT_1010102_REV: cMin = 0.0f; cMax = 1023.0f; break;
411 case TextureFormat::SSCALED_INT_1010102_REV: cMin = -512.0f; cMax = 511.0f; break;
424 * given TextureFormat. Parameters include value ranges per channel and
428 TextureFormatInfo getTextureFormatInfo (const TextureFormat& format)
431 if (format.type == TextureFormat::UNSIGNED_INT_1010102_REV)
436 if (format.type == TextureFormat::SIGNED_INT_1010102_REV)
441 else if (format.order == TextureFormat::D || format.order == TextureFormat::DS)
446 else if (format == TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_SHORT_5551))
451 else if (format.type == TextureFormat::UNSIGNED_SHORT_5551)
456 else if (format.type == TextureFormat::UNSIGNED_SHORT_565)
477 IVec4 getFormatMinIntValue (const TextureFormat& format)
483 case TextureFormat::SIGNED_INT8: return IVec4(std::numeric_limits<deInt8>::min());
484 case TextureFormat::SIGNED_INT16: return IVec4(std::numeric_limits<deInt16>::min());
485 case TextureFormat::SIGNED_INT32: return IVec4(std::numeric_limits<deInt32>::min());
493 IVec4 getFormatMaxIntValue (const TextureFormat& format)
497 if (format == TextureFormat(TextureFormat::RGBA, TextureFormat::SIGNED_INT_1010102_REV) ||
498 format == TextureFormat(TextureFormat::BGRA, TextureFormat::SSCALED_INT_1010102_REV) ||
499 format == TextureFormat(TextureFormat::RGBA, TextureFormat::SSCALED_INT_1010102_REV) ||
500 format == TextureFormat(TextureFormat::BGRA, TextureFormat::SIGNED_INT_1010102_REV))
505 case TextureFormat::SIGNED_INT8: return IVec4(std::numeric_limits<deInt8>::max());
506 case TextureFormat::SIGNED_INT16: return IVec4(std::numeric_limits<deInt16>::max());
507 case TextureFormat::SIGNED_INT32: return IVec4(std::numeric_limits<deInt32>::max());
509 case TextureFormat::SSCALED_INT8: return IVec4(std::numeric_limits<deInt8>::max());
510 case TextureFormat::SSCALED_INT16: return IVec4(std::numeric_limits<deInt16>::max());
518 UVec4 getFormatMaxUintValue (const TextureFormat& format)
522 if (format == TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT_1010102_REV) ||
523 format == TextureFormat(TextureFormat::RGBA, TextureFormat::USCALED_INT_1010102_REV) ||
524 format == TextureFormat(TextureFormat::BGRA, TextureFormat::USCALED_INT_1010102_REV) ||
525 format == TextureFormat(TextureFormat::BGRA, TextureFormat::UNSIGNED_INT_1010102_REV))
530 case TextureFormat::UNSIGNED_INT8: return UVec4(std::numeric_limits<deUint8>::max());
531 case TextureFormat::UNSIGNED_INT16: return UVec4(std::numeric_limits<deUint16>::max());
532 case TextureFormat::UNSIGNED_INT24: return UVec4(0xffffffu);
533 case TextureFormat::UNSIGNED_INT32: return UVec4(std::numeric_limits<deUint32>::max());
535 case TextureFormat::USCALED_INT8: return UVec4(std::numeric_limits<deUint8>::max());
536 case TextureFormat::USCALED_INT16: return UVec4(std::numeric_limits<deUint16>::max());
544 static IVec4 getChannelBitDepth (TextureFormat::ChannelType channelType)
547 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48);
551 case TextureFormat::SNORM_INT8: return IVec4(8);
552 case TextureFormat::SNORM_INT16: return IVec4(16);
553 case TextureFormat::SNORM_INT32: return IVec4(32);
554 case TextureFormat::UNORM_INT8: return IVec4(8);
555 case TextureFormat::UNORM_INT16: return IVec4(16);
556 case TextureFormat::UNORM_INT24: return IVec4(24);
557 case TextureFormat::UNORM_INT32: return IVec4(32);
558 case TextureFormat::UNORM_BYTE_44: return IVec4(4,4,0,0);
559 case TextureFormat::UNORM_SHORT_565: return IVec4(5,6,5,0);
560 case TextureFormat::UNORM_SHORT_4444: return IVec4(4);
561 case TextureFormat::UNORM_SHORT_555: return IVec4(5,5,5,0);
562 case TextureFormat::UNORM_SHORT_5551: return IVec4(5,5,5,1);
563 case TextureFormat::UNORM_SHORT_1555: return IVec4(1,5,5,5);
564 case TextureFormat::UNSIGNED_BYTE_44: return IVec4(4,4,0,0);
565 case TextureFormat::UNSIGNED_SHORT_565: return IVec4(5,6,5,0);
566 case TextureFormat::UNSIGNED_SHORT_4444: return IVec4(4);
567 case TextureFormat::UNSIGNED_SHORT_5551: return IVec4(5,5,5,1);
568 case TextureFormat::UNORM_INT_101010: return IVec4(10,10,10,0);
569 case TextureFormat::SNORM_INT_1010102_REV: return IVec4(10,10,10,2);
570 case TextureFormat::UNORM_INT_1010102_REV: return IVec4(10,10,10,2);
571 case TextureFormat::SIGNED_INT8: return IVec4(8);
572 case TextureFormat::SIGNED_INT16: return IVec4(16);
573 case TextureFormat::SIGNED_INT32: return IVec4(32);
574 case TextureFormat::SIGNED_INT64: return IVec4(64);
575 case TextureFormat::UNSIGNED_INT8: return IVec4(8);
576 case TextureFormat::UNSIGNED_INT16: return IVec4(16);
577 case TextureFormat::UNSIGNED_INT24: return IVec4(24);
578 case TextureFormat::UNSIGNED_INT32: return IVec4(32);
579 case TextureFormat::UNSIGNED_INT64: return IVec4(64);
580 case TextureFormat::SIGNED_INT_1010102_REV: return IVec4(10,10,10,2);
581 case TextureFormat::UNSIGNED_INT_1010102_REV: return IVec4(10,10,10,2);
582 case TextureFormat::UNSIGNED_INT_16_8_8: return IVec4(16,8,0,0);
583 case TextureFormat::UNSIGNED_INT_24_8: return IVec4(24,8,0,0);
584 case TextureFormat::UNSIGNED_INT_24_8_REV: return IVec4(24,8,0,0);
585 case TextureFormat::HALF_FLOAT: return IVec4(16);
586 case TextureFormat::FLOAT: return IVec4(32);
587 case TextureFormat::FLOAT64: return IVec4(64);
588 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return IVec4(11,11,10,0);
589 case TextureFormat::UNSIGNED_INT_999_E5_REV: return IVec4(9,9,9,0);
590 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return IVec4(32,8,0,0);
591 case TextureFormat::UNORM_SHORT_10: return IVec4(10);
592 case TextureFormat::UNORM_SHORT_12: return IVec4(12);
593 case TextureFormat::USCALED_INT8: return IVec4(8);
594 case TextureFormat::USCALED_INT16: return IVec4(16);
595 case TextureFormat::SSCALED_INT8: return IVec4(8);
596 case TextureFormat::SSCALED_INT16: return IVec4(16);
597 case TextureFormat::USCALED_INT_1010102_REV: return IVec4(10,10,10,2);
598 case TextureFormat::SSCALED_INT_1010102_REV: return IVec4(10,10,10,2);
605 IVec4 getTextureFormatBitDepth (const TextureFormat& format)
621 static IVec4 getChannelMantissaBitDepth (TextureFormat::ChannelType channelType)
624 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48);
628 case TextureFormat::SNORM_INT8:
629 case TextureFormat::SNORM_INT16:
630 case TextureFormat::SNORM_INT32:
631 case TextureFormat::UNORM_INT8:
632 case TextureFormat::UNORM_INT16:
633 case TextureFormat::UNORM_INT24:
634 case TextureFormat::UNORM_INT32:
635 case TextureFormat::UNORM_BYTE_44:
636 case TextureFormat::UNORM_SHORT_565:
637 case TextureFormat::UNORM_SHORT_4444:
638 case TextureFormat::UNORM_SHORT_555:
639 case TextureFormat::UNORM_SHORT_5551:
640 case TextureFormat::UNORM_SHORT_1555:
641 case TextureFormat::UNSIGNED_BYTE_44:
642 case TextureFormat::UNSIGNED_SHORT_565:
643 case TextureFormat::UNSIGNED_SHORT_4444:
644 case TextureFormat::UNSIGNED_SHORT_5551:
645 case TextureFormat::UNORM_INT_101010:
646 case TextureFormat::SNORM_INT_1010102_REV:
647 case TextureFormat::UNORM_INT_1010102_REV:
648 case TextureFormat::SIGNED_INT8:
649 case TextureFormat::SIGNED_INT16:
650 case TextureFormat::SIGNED_INT32:
651 case TextureFormat::UNSIGNED_INT8:
652 case TextureFormat::UNSIGNED_INT16:
653 case TextureFormat::UNSIGNED_INT24:
654 case TextureFormat::UNSIGNED_INT32:
655 case TextureFormat::SIGNED_INT_1010102_REV:
656 case TextureFormat::UNSIGNED_INT_1010102_REV:
657 case TextureFormat::UNSIGNED_INT_16_8_8:
658 case TextureFormat::UNSIGNED_INT_24_8:
659 case TextureFormat::UNSIGNED_INT_24_8_REV:
660 case TextureFormat::UNSIGNED_INT_999_E5_REV:
661 case TextureFormat::UNORM_SHORT_10:
662 case TextureFormat::UNORM_SHORT_12:
663 case TextureFormat::USCALED_INT8:
664 case TextureFormat::USCALED_INT16:
665 case TextureFormat::SSCALED_INT8:
666 case TextureFormat::SSCALED_INT16:
667 case TextureFormat::USCALED_INT_1010102_REV:
668 case TextureFormat::SSCALED_INT_1010102_REV:
671 case TextureFormat::HALF_FLOAT: return IVec4(10);
672 case TextureFormat::FLOAT: return IVec4(23);
673 case TextureFormat::FLOAT64: return IVec4(52);
674 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return IVec4(6,6,5,0);
675 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return IVec4(23,8,0,0);
682 IVec4 getTextureFormatMantissaBitDepth (const TextureFormat& format)
698 BVec4 getTextureFormatChannelMask (const TextureFormat& format)
823 DE_ASSERT(access.getFormat().order == TextureFormat::DS || access.getFormat().order == TextureFormat::D);
830 DE_ASSERT(access.getFormat().order == TextureFormat::DS || access.getFormat().order == TextureFormat::S);
956 const bool hasDepth = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::TextureFormat::D;
957 const bool hasStencil = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::TextureFormat::S;
1048 const bool hasDepth = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::TextureFormat::D;
1049 const bool hasStencil = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::TextureFormat::S;
1149 const bool srcHasDepth = (src.getFormat().order == tcu::TextureFormat::DS || src.getFormat().order == tcu::TextureFormat::D);
1150 const bool srcHasStencil = (src.getFormat().order == tcu::TextureFormat::DS || src.getFormat().order == tcu::TextureFormat::S);
1151 const bool dstHasDepth = (dst.getFormat().order == tcu::TextureFormat::DS || dst.getFormat().order == tcu::TextureFormat::D);
1152 const bool dstHasStencil = (dst.getFormat().order == tcu::TextureFormat::DS || dst.getFormat().order == tcu::TextureFormat::S);
1251 const TextureFormat& format = access.getFormat();
1388 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48);
1409 DE_ASSERT(baseAccess.getFormat().order == TextureFormat::DS ||
1410 (mode == Sampler::MODE_DEPTH && baseAccess.getFormat().order == TextureFormat::D) ||
1411 (mode == Sampler::MODE_STENCIL && baseAccess.getFormat().order == TextureFormat::S));
1416 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV:
1421 return AccessType(TextureFormat(TextureFormat::D, TextureFormat::FLOAT),
1429 return AccessType(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8),
1442 case TextureFormat::UNSIGNED_INT_16_8_8:
1447 return AccessType(TextureFormat(TextureFormat::D, TextureFormat::UNORM_INT16),
1455 return AccessType(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8),
1468 case TextureFormat::UNSIGNED_INT_24_8:
1473 return AccessType(TextureFormat(TextureFormat::D, TextureFormat::UNORM_INT24),
1481 return AccessType(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8),
1494 case TextureFormat::UNSIGNED_INT_24_8_REV:
1499 return AccessType(TextureFormat(TextureFormat::D, TextureFormat::UNORM_INT24),
1507 return AccessType(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8),
1540 TextureFormat getEffectiveDepthStencilTextureFormat (const TextureFormat& baseFormat, Sampler::DepthStencilMode mode)
1619 static const TextureSwizzle& getBorderColorReadSwizzle (TextureFormat::ChannelOrder order)
1622 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22);
1641 case TextureFormat::R: swizzle = &R; break;
1642 case TextureFormat::A: swizzle = &A; break;
1643 case TextureFormat::I: swizzle = &I; break;
1644 case TextureFormat::L: swizzle = &L; break;
1645 case TextureFormat::LA: swizzle = &LA; break;
1646 case TextureFormat::RG: swizzle = &RG; break;
1647 case TextureFormat::RA: swizzle = &RA; break;
1648 case TextureFormat::RGB: swizzle = &RGB; break;
1649 case TextureFormat::RGBA: swizzle = &RGBA; break;
1650 case TextureFormat::ARGB: swizzle = &RGBA; break;
1651 case TextureFormat::ABGR: swizzle = &RGBA; break;
1652 case TextureFormat::BGR: swizzle = &RGB; break;
1653 case TextureFormat::BGRA: swizzle = &RGBA; break;
1654 case TextureFormat::sR: swizzle = &R; break;
1655 case TextureFormat::sRG: swizzle = &RG; break;
1656 case TextureFormat::sRGB: swizzle = &RGB; break;
1657 case TextureFormat::sRGBA: swizzle = &RGBA; break;
1658 case TextureFormat::sBGR: swizzle = &RGB; break;
1659 case TextureFormat::sBGRA: swizzle = &RGBA; break;
1660 case TextureFormat::D: swizzle = &D; break;
1661 case TextureFormat::S: swizzle = &S; break;
1663 case TextureFormat::DS:
1719 static tcu::Vec4 getTextureBorderColorFloat (const TextureFormat& format, const Sampler& sampler)
1755 static tcu::IVec4 getTextureBorderColorInt (const TextureFormat& format, const Sampler& sampler)
1784 static tcu::UVec4 getTextureBorderColorUint (const TextureFormat& format, const Sampler& sampler)
1813 tcu::Vector<ScalarType, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& sampler)
1837 template tcu::Vector<float, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& sampler);
1838 template tcu::Vector<deInt32, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& sampler);
1839 template tcu::Vector<deUint32, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& sampler);