Lines Matching refs:TextureFormat
102 bool isSRGB (TextureFormat format) in isSRGB()
105 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in isSRGB()
107 return format.order == TextureFormat::sR || in isSRGB()
108 format.order == TextureFormat::sRG || in isSRGB()
109 format.order == TextureFormat::sRGB || in isSRGB()
110 format.order == TextureFormat::sRGBA || in isSRGB()
111 format.order == TextureFormat::sBGR || in isSRGB()
112 format.order == TextureFormat::sBGRA; in isSRGB()
115 tcu::Vec4 linearToSRGBIfNeeded (const TextureFormat& format, const tcu::Vec4& color) in linearToSRGBIfNeeded()
120 bool isCombinedDepthStencilType (TextureFormat::ChannelType type) in isCombinedDepthStencilType()
123 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in isCombinedDepthStencilType()
125 return type == TextureFormat::UNSIGNED_INT_16_8_8 || in isCombinedDepthStencilType()
126 type == TextureFormat::UNSIGNED_INT_24_8 || in isCombinedDepthStencilType()
127 type == TextureFormat::UNSIGNED_INT_24_8_REV || in isCombinedDepthStencilType()
128 type == TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV; in isCombinedDepthStencilType()
131 bool hasStencilComponent (TextureFormat::ChannelOrder order) in hasStencilComponent()
133 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in hasStencilComponent()
137 case TextureFormat::S: in hasStencilComponent()
138 case TextureFormat::DS: in hasStencilComponent()
146 bool hasDepthComponent (TextureFormat::ChannelOrder order) in hasDepthComponent()
148 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in hasDepthComponent()
152 case TextureFormat::D: in hasDepthComponent()
153 case TextureFormat::DS: in hasDepthComponent()
162 TextureChannelClass getTextureChannelClass (TextureFormat::ChannelType channelType) in getTextureChannelClass()
165 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in getTextureChannelClass()
169 case TextureFormat::SNORM_INT8: return TEXTURECHANNELCLASS_SIGNED_FIXED_POINT; in getTextureChannelClass()
170 case TextureFormat::SNORM_INT16: return TEXTURECHANNELCLASS_SIGNED_FIXED_POINT; in getTextureChannelClass()
171 case TextureFormat::SNORM_INT32: return TEXTURECHANNELCLASS_SIGNED_FIXED_POINT; in getTextureChannelClass()
172 case TextureFormat::UNORM_INT8: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
173 case TextureFormat::UNORM_INT16: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
174 case TextureFormat::UNORM_INT24: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
175 case TextureFormat::UNORM_INT32: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
176 case TextureFormat::UNORM_BYTE_44: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
177 case TextureFormat::UNORM_SHORT_565: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
178 case TextureFormat::UNORM_SHORT_555: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
179 case TextureFormat::UNORM_SHORT_4444: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
180 case TextureFormat::UNORM_SHORT_5551: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
181 case TextureFormat::UNORM_SHORT_1555: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
182 case TextureFormat::UNSIGNED_BYTE_44: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
183 case TextureFormat::UNSIGNED_SHORT_565: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
184 case TextureFormat::UNSIGNED_SHORT_4444: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
185 case TextureFormat::UNSIGNED_SHORT_5551: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
186 case TextureFormat::UNORM_INT_101010: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
187 case TextureFormat::SNORM_INT_1010102_REV: return TEXTURECHANNELCLASS_SIGNED_FIXED_POINT; in getTextureChannelClass()
188 case TextureFormat::UNORM_INT_1010102_REV: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
189 case TextureFormat::SIGNED_INT_1010102_REV: return TEXTURECHANNELCLASS_SIGNED_INTEGER; in getTextureChannelClass()
190 case TextureFormat::UNSIGNED_INT_1010102_REV: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
191 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return TEXTURECHANNELCLASS_FLOATING_POINT; in getTextureChannelClass()
192 case TextureFormat::UNSIGNED_INT_999_E5_REV: return TEXTURECHANNELCLASS_FLOATING_POINT; in getTextureChannelClass()
193 …case TextureFormat::UNSIGNED_INT_16_8_8: return TEXTURECHANNELCLASS_LAST; //!< packed unorm1… in getTextureChannelClass()
194 …case TextureFormat::UNSIGNED_INT_24_8: return TEXTURECHANNELCLASS_LAST; //!< packed unorm24… in getTextureChannelClass()
195 …case TextureFormat::UNSIGNED_INT_24_8_REV: return TEXTURECHANNELCLASS_LAST; //!< packed unor… in getTextureChannelClass()
196 case TextureFormat::SIGNED_INT8: return TEXTURECHANNELCLASS_SIGNED_INTEGER; in getTextureChannelClass()
197 case TextureFormat::SIGNED_INT16: return TEXTURECHANNELCLASS_SIGNED_INTEGER; in getTextureChannelClass()
198 case TextureFormat::SIGNED_INT32: return TEXTURECHANNELCLASS_SIGNED_INTEGER; in getTextureChannelClass()
199 case TextureFormat::SIGNED_INT64: return TEXTURECHANNELCLASS_SIGNED_INTEGER; in getTextureChannelClass()
200 case TextureFormat::UNSIGNED_INT8: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
201 case TextureFormat::UNSIGNED_INT16: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
202 case TextureFormat::UNSIGNED_INT24: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
203 case TextureFormat::UNSIGNED_INT32: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
204 case TextureFormat::UNSIGNED_INT64: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
205 case TextureFormat::HALF_FLOAT: return TEXTURECHANNELCLASS_FLOATING_POINT; in getTextureChannelClass()
206 case TextureFormat::FLOAT: return TEXTURECHANNELCLASS_FLOATING_POINT; in getTextureChannelClass()
207 case TextureFormat::FLOAT64: return TEXTURECHANNELCLASS_FLOATING_POINT; in getTextureChannelClass()
208 …case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return TEXTURECHANNELCLASS_LAST; //!< packed … in getTextureChannelClass()
209 case TextureFormat::UNORM_SHORT_10: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
210 case TextureFormat::UNORM_SHORT_12: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
211 case TextureFormat::USCALED_INT8: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
212 case TextureFormat::USCALED_INT16: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
213 case TextureFormat::SSCALED_INT8: return TEXTURECHANNELCLASS_SIGNED_INTEGER; in getTextureChannelClass()
214 case TextureFormat::SSCALED_INT16: return TEXTURECHANNELCLASS_SIGNED_INTEGER; in getTextureChannelClass()
215 case TextureFormat::USCALED_INT_1010102_REV: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
216 case TextureFormat::SSCALED_INT_1010102_REV: return TEXTURECHANNELCLASS_SIGNED_INTEGER; in getTextureChannelClass()
223 bool isAccessValid (TextureFormat format, TextureAccessType type) in isAccessValid()
227 if (format.order == TextureFormat::DS) in isAccessValid()
234 else if (format.order == TextureFormat::D) in isAccessValid()
236 else if (format.order == TextureFormat::S) in isAccessValid()
241 if (format.type == TextureFormat::UNSIGNED_INT_11F_11F_10F_REV || in isAccessValid()
242 format.type == TextureFormat::UNSIGNED_INT_999_E5_REV) in isAccessValid()
357 static Vec2 getFloatChannelValueRange (TextureFormat::ChannelType channelType) in getFloatChannelValueRange()
360 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in getFloatChannelValueRange()
368 case TextureFormat::SNORM_INT8: in getFloatChannelValueRange()
369 case TextureFormat::SNORM_INT16: in getFloatChannelValueRange()
370 case TextureFormat::SNORM_INT32: in getFloatChannelValueRange()
371 case TextureFormat::SNORM_INT_1010102_REV: cMin = -1.0f; cMax = 1.0f; break; in getFloatChannelValueRange()
374 case TextureFormat::UNORM_INT8: in getFloatChannelValueRange()
375 case TextureFormat::UNORM_INT16: in getFloatChannelValueRange()
376 case TextureFormat::UNORM_INT24: in getFloatChannelValueRange()
377 case TextureFormat::UNORM_INT32: in getFloatChannelValueRange()
378 case TextureFormat::UNORM_BYTE_44: in getFloatChannelValueRange()
379 case TextureFormat::UNORM_SHORT_565: in getFloatChannelValueRange()
380 case TextureFormat::UNORM_SHORT_555: in getFloatChannelValueRange()
381 case TextureFormat::UNORM_SHORT_4444: in getFloatChannelValueRange()
382 case TextureFormat::UNORM_SHORT_5551: in getFloatChannelValueRange()
383 case TextureFormat::UNORM_SHORT_1555: in getFloatChannelValueRange()
384 case TextureFormat::UNORM_INT_101010: in getFloatChannelValueRange()
385 case TextureFormat::UNORM_INT_1010102_REV: in getFloatChannelValueRange()
386 case TextureFormat::UNORM_SHORT_10: in getFloatChannelValueRange()
387 case TextureFormat::UNORM_SHORT_12: cMin = 0.0f; cMax = 1.0f; break; in getFloatChannelValueRange()
390 case TextureFormat::SIGNED_INT8: cMin = -128.0f; cMax = 127.0f; break; in getFloatChannelValueRange()
391 case TextureFormat::SIGNED_INT16: cMin = -32768.0f; cMax = 32767.0f; break; in getFloatChannelValueRange()
392 …case TextureFormat::SIGNED_INT32: cMin = -2147483520.0f; cMax = 2147483520.0f; break; // Maxim… in getFloatChannelValueRange()
393 case TextureFormat::UNSIGNED_INT8: cMin = 0.0f; cMax = 255.0f; break; in getFloatChannelValueRange()
394 case TextureFormat::UNSIGNED_INT16: cMin = 0.0f; cMax = 65535.0f; break; in getFloatChannelValueRange()
395 case TextureFormat::UNSIGNED_INT24: cMin = 0.0f; cMax = 16777215.0f; break; in getFloatChannelValueRange()
396 …case TextureFormat::UNSIGNED_INT32: cMin = 0.0f; cMax = 4294967040.f; break; // Maximum exac… in getFloatChannelValueRange()
397 case TextureFormat::HALF_FLOAT: cMin = -1e3f; cMax = 1e3f; break; in getFloatChannelValueRange()
398 case TextureFormat::FLOAT: cMin = -1e5f; cMax = 1e5f; break; in getFloatChannelValueRange()
399 case TextureFormat::FLOAT64: cMin = -1e5f; cMax = 1e5f; break; in getFloatChannelValueRange()
400 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: cMin = 0.0f; cMax = 1e4f; break; in getFloatChannelValueRange()
401 case TextureFormat::UNSIGNED_INT_999_E5_REV: cMin = 0.0f; cMax = 0.5e5f; break; in getFloatChannelValueRange()
402 case TextureFormat::UNSIGNED_BYTE_44: cMin = 0.0f; cMax = 15.f; break; in getFloatChannelValueRange()
403 case TextureFormat::UNSIGNED_SHORT_4444: cMin = 0.0f; cMax = 15.f; break; in getFloatChannelValueRange()
404 case TextureFormat::USCALED_INT8: cMin = 0.0f; cMax = 255.0f; break; in getFloatChannelValueRange()
405 case TextureFormat::USCALED_INT16: cMin = 0.0f; cMax = 65535.0f; break; in getFloatChannelValueRange()
406 case TextureFormat::SSCALED_INT8: cMin = -128.0f; cMax = 127.0f; break; in getFloatChannelValueRange()
407 case TextureFormat::SSCALED_INT16: cMin = -32768.0f; cMax = 32767.0f; break; in getFloatChannelValueRange()
408 case TextureFormat::USCALED_INT_1010102_REV: cMin = 0.0f; cMax = 1023.0f; break; in getFloatChannelValueRange()
409 case TextureFormat::SSCALED_INT_1010102_REV: cMin = -512.0f; cMax = 511.0f; break; in getFloatChannelValueRange()
426 TextureFormatInfo getTextureFormatInfo (const TextureFormat& format) in getTextureFormatInfo()
429 if (format.type == TextureFormat::UNSIGNED_INT_1010102_REV) in getTextureFormatInfo()
434 if (format.type == TextureFormat::SIGNED_INT_1010102_REV) in getTextureFormatInfo()
439 else if (format.order == TextureFormat::D || format.order == TextureFormat::DS) in getTextureFormatInfo()
444 else if (format == TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_SHORT_5551)) in getTextureFormatInfo()
449 else if (format.type == TextureFormat::UNSIGNED_SHORT_5551) in getTextureFormatInfo()
454 else if (format.type == TextureFormat::UNSIGNED_SHORT_565) in getTextureFormatInfo()
475 IVec4 getFormatMinIntValue (const TextureFormat& format) in getFormatMinIntValue()
481 case TextureFormat::SIGNED_INT8: return IVec4(std::numeric_limits<deInt8>::min()); in getFormatMinIntValue()
482 case TextureFormat::SIGNED_INT16: return IVec4(std::numeric_limits<deInt16>::min()); in getFormatMinIntValue()
483 case TextureFormat::SIGNED_INT32: return IVec4(std::numeric_limits<deInt32>::min()); in getFormatMinIntValue()
491 IVec4 getFormatMaxIntValue (const TextureFormat& format) in getFormatMaxIntValue()
495 if (format == TextureFormat(TextureFormat::RGBA, TextureFormat::SIGNED_INT_1010102_REV) || in getFormatMaxIntValue()
496 format == TextureFormat(TextureFormat::BGRA, TextureFormat::SSCALED_INT_1010102_REV) || in getFormatMaxIntValue()
497 format == TextureFormat(TextureFormat::RGBA, TextureFormat::SSCALED_INT_1010102_REV) || in getFormatMaxIntValue()
498 format == TextureFormat(TextureFormat::BGRA, TextureFormat::SIGNED_INT_1010102_REV)) in getFormatMaxIntValue()
503 case TextureFormat::SIGNED_INT8: return IVec4(std::numeric_limits<deInt8>::max()); in getFormatMaxIntValue()
504 case TextureFormat::SIGNED_INT16: return IVec4(std::numeric_limits<deInt16>::max()); in getFormatMaxIntValue()
505 case TextureFormat::SIGNED_INT32: return IVec4(std::numeric_limits<deInt32>::max()); in getFormatMaxIntValue()
507 case TextureFormat::SSCALED_INT8: return IVec4(std::numeric_limits<deInt8>::max()); in getFormatMaxIntValue()
508 case TextureFormat::SSCALED_INT16: return IVec4(std::numeric_limits<deInt16>::max()); in getFormatMaxIntValue()
516 UVec4 getFormatMaxUintValue (const TextureFormat& format) in getFormatMaxUintValue()
520 if (format == TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT_1010102_REV) || in getFormatMaxUintValue()
521 format == TextureFormat(TextureFormat::RGBA, TextureFormat::USCALED_INT_1010102_REV) || in getFormatMaxUintValue()
522 format == TextureFormat(TextureFormat::BGRA, TextureFormat::USCALED_INT_1010102_REV) || in getFormatMaxUintValue()
523 format == TextureFormat(TextureFormat::BGRA, TextureFormat::UNSIGNED_INT_1010102_REV)) in getFormatMaxUintValue()
528 case TextureFormat::UNSIGNED_INT8: return UVec4(std::numeric_limits<deUint8>::max()); in getFormatMaxUintValue()
529 case TextureFormat::UNSIGNED_INT16: return UVec4(std::numeric_limits<deUint16>::max()); in getFormatMaxUintValue()
530 case TextureFormat::UNSIGNED_INT24: return UVec4(0xffffffu); in getFormatMaxUintValue()
531 case TextureFormat::UNSIGNED_INT32: return UVec4(std::numeric_limits<deUint32>::max()); in getFormatMaxUintValue()
533 case TextureFormat::USCALED_INT8: return UVec4(std::numeric_limits<deUint8>::max()); in getFormatMaxUintValue()
534 case TextureFormat::USCALED_INT16: return UVec4(std::numeric_limits<deUint16>::max()); in getFormatMaxUintValue()
542 static IVec4 getChannelBitDepth (TextureFormat::ChannelType channelType) in getChannelBitDepth()
545 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in getChannelBitDepth()
549 case TextureFormat::SNORM_INT8: return IVec4(8); in getChannelBitDepth()
550 case TextureFormat::SNORM_INT16: return IVec4(16); in getChannelBitDepth()
551 case TextureFormat::SNORM_INT32: return IVec4(32); in getChannelBitDepth()
552 case TextureFormat::UNORM_INT8: return IVec4(8); in getChannelBitDepth()
553 case TextureFormat::UNORM_INT16: return IVec4(16); in getChannelBitDepth()
554 case TextureFormat::UNORM_INT24: return IVec4(24); in getChannelBitDepth()
555 case TextureFormat::UNORM_INT32: return IVec4(32); in getChannelBitDepth()
556 case TextureFormat::UNORM_BYTE_44: return IVec4(4,4,0,0); in getChannelBitDepth()
557 case TextureFormat::UNORM_SHORT_565: return IVec4(5,6,5,0); in getChannelBitDepth()
558 case TextureFormat::UNORM_SHORT_4444: return IVec4(4); in getChannelBitDepth()
559 case TextureFormat::UNORM_SHORT_555: return IVec4(5,5,5,0); in getChannelBitDepth()
560 case TextureFormat::UNORM_SHORT_5551: return IVec4(5,5,5,1); in getChannelBitDepth()
561 case TextureFormat::UNORM_SHORT_1555: return IVec4(1,5,5,5); in getChannelBitDepth()
562 case TextureFormat::UNSIGNED_BYTE_44: return IVec4(4,4,0,0); in getChannelBitDepth()
563 case TextureFormat::UNSIGNED_SHORT_565: return IVec4(5,6,5,0); in getChannelBitDepth()
564 case TextureFormat::UNSIGNED_SHORT_4444: return IVec4(4); in getChannelBitDepth()
565 case TextureFormat::UNSIGNED_SHORT_5551: return IVec4(5,5,5,1); in getChannelBitDepth()
566 case TextureFormat::UNORM_INT_101010: return IVec4(10,10,10,0); in getChannelBitDepth()
567 case TextureFormat::SNORM_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
568 case TextureFormat::UNORM_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
569 case TextureFormat::SIGNED_INT8: return IVec4(8); in getChannelBitDepth()
570 case TextureFormat::SIGNED_INT16: return IVec4(16); in getChannelBitDepth()
571 case TextureFormat::SIGNED_INT32: return IVec4(32); in getChannelBitDepth()
572 case TextureFormat::SIGNED_INT64: return IVec4(64); in getChannelBitDepth()
573 case TextureFormat::UNSIGNED_INT8: return IVec4(8); in getChannelBitDepth()
574 case TextureFormat::UNSIGNED_INT16: return IVec4(16); in getChannelBitDepth()
575 case TextureFormat::UNSIGNED_INT24: return IVec4(24); in getChannelBitDepth()
576 case TextureFormat::UNSIGNED_INT32: return IVec4(32); in getChannelBitDepth()
577 case TextureFormat::UNSIGNED_INT64: return IVec4(64); in getChannelBitDepth()
578 case TextureFormat::SIGNED_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
579 case TextureFormat::UNSIGNED_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
580 case TextureFormat::UNSIGNED_INT_16_8_8: return IVec4(16,8,0,0); in getChannelBitDepth()
581 case TextureFormat::UNSIGNED_INT_24_8: return IVec4(24,8,0,0); in getChannelBitDepth()
582 case TextureFormat::UNSIGNED_INT_24_8_REV: return IVec4(24,8,0,0); in getChannelBitDepth()
583 case TextureFormat::HALF_FLOAT: return IVec4(16); in getChannelBitDepth()
584 case TextureFormat::FLOAT: return IVec4(32); in getChannelBitDepth()
585 case TextureFormat::FLOAT64: return IVec4(64); in getChannelBitDepth()
586 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return IVec4(11,11,10,0); in getChannelBitDepth()
587 case TextureFormat::UNSIGNED_INT_999_E5_REV: return IVec4(9,9,9,0); in getChannelBitDepth()
588 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return IVec4(32,8,0,0); in getChannelBitDepth()
589 case TextureFormat::UNORM_SHORT_10: return IVec4(10); in getChannelBitDepth()
590 case TextureFormat::UNORM_SHORT_12: return IVec4(12); in getChannelBitDepth()
591 case TextureFormat::USCALED_INT8: return IVec4(8); in getChannelBitDepth()
592 case TextureFormat::USCALED_INT16: return IVec4(16); in getChannelBitDepth()
593 case TextureFormat::SSCALED_INT8: return IVec4(8); in getChannelBitDepth()
594 case TextureFormat::SSCALED_INT16: return IVec4(16); in getChannelBitDepth()
595 case TextureFormat::USCALED_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
596 case TextureFormat::SSCALED_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
603 IVec4 getTextureFormatBitDepth (const TextureFormat& format) in getTextureFormatBitDepth()
619 static IVec4 getChannelMantissaBitDepth (TextureFormat::ChannelType channelType) in getChannelMantissaBitDepth()
622 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in getChannelMantissaBitDepth()
626 case TextureFormat::SNORM_INT8: in getChannelMantissaBitDepth()
627 case TextureFormat::SNORM_INT16: in getChannelMantissaBitDepth()
628 case TextureFormat::SNORM_INT32: in getChannelMantissaBitDepth()
629 case TextureFormat::UNORM_INT8: in getChannelMantissaBitDepth()
630 case TextureFormat::UNORM_INT16: in getChannelMantissaBitDepth()
631 case TextureFormat::UNORM_INT24: in getChannelMantissaBitDepth()
632 case TextureFormat::UNORM_INT32: in getChannelMantissaBitDepth()
633 case TextureFormat::UNORM_BYTE_44: in getChannelMantissaBitDepth()
634 case TextureFormat::UNORM_SHORT_565: in getChannelMantissaBitDepth()
635 case TextureFormat::UNORM_SHORT_4444: in getChannelMantissaBitDepth()
636 case TextureFormat::UNORM_SHORT_555: in getChannelMantissaBitDepth()
637 case TextureFormat::UNORM_SHORT_5551: in getChannelMantissaBitDepth()
638 case TextureFormat::UNORM_SHORT_1555: in getChannelMantissaBitDepth()
639 case TextureFormat::UNSIGNED_BYTE_44: in getChannelMantissaBitDepth()
640 case TextureFormat::UNSIGNED_SHORT_565: in getChannelMantissaBitDepth()
641 case TextureFormat::UNSIGNED_SHORT_4444: in getChannelMantissaBitDepth()
642 case TextureFormat::UNSIGNED_SHORT_5551: in getChannelMantissaBitDepth()
643 case TextureFormat::UNORM_INT_101010: in getChannelMantissaBitDepth()
644 case TextureFormat::SNORM_INT_1010102_REV: in getChannelMantissaBitDepth()
645 case TextureFormat::UNORM_INT_1010102_REV: in getChannelMantissaBitDepth()
646 case TextureFormat::SIGNED_INT8: in getChannelMantissaBitDepth()
647 case TextureFormat::SIGNED_INT16: in getChannelMantissaBitDepth()
648 case TextureFormat::SIGNED_INT32: in getChannelMantissaBitDepth()
649 case TextureFormat::UNSIGNED_INT8: in getChannelMantissaBitDepth()
650 case TextureFormat::UNSIGNED_INT16: in getChannelMantissaBitDepth()
651 case TextureFormat::UNSIGNED_INT24: in getChannelMantissaBitDepth()
652 case TextureFormat::UNSIGNED_INT32: in getChannelMantissaBitDepth()
653 case TextureFormat::SIGNED_INT_1010102_REV: in getChannelMantissaBitDepth()
654 case TextureFormat::UNSIGNED_INT_1010102_REV: in getChannelMantissaBitDepth()
655 case TextureFormat::UNSIGNED_INT_16_8_8: in getChannelMantissaBitDepth()
656 case TextureFormat::UNSIGNED_INT_24_8: in getChannelMantissaBitDepth()
657 case TextureFormat::UNSIGNED_INT_24_8_REV: in getChannelMantissaBitDepth()
658 case TextureFormat::UNSIGNED_INT_999_E5_REV: in getChannelMantissaBitDepth()
659 case TextureFormat::UNORM_SHORT_10: in getChannelMantissaBitDepth()
660 case TextureFormat::UNORM_SHORT_12: in getChannelMantissaBitDepth()
661 case TextureFormat::USCALED_INT8: in getChannelMantissaBitDepth()
662 case TextureFormat::USCALED_INT16: in getChannelMantissaBitDepth()
663 case TextureFormat::SSCALED_INT8: in getChannelMantissaBitDepth()
664 case TextureFormat::SSCALED_INT16: in getChannelMantissaBitDepth()
665 case TextureFormat::USCALED_INT_1010102_REV: in getChannelMantissaBitDepth()
666 case TextureFormat::SSCALED_INT_1010102_REV: in getChannelMantissaBitDepth()
669 case TextureFormat::HALF_FLOAT: return IVec4(10); in getChannelMantissaBitDepth()
670 case TextureFormat::FLOAT: return IVec4(23); in getChannelMantissaBitDepth()
671 case TextureFormat::FLOAT64: return IVec4(52); in getChannelMantissaBitDepth()
672 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return IVec4(6,6,5,0); in getChannelMantissaBitDepth()
673 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return IVec4(23,8,0,0); in getChannelMantissaBitDepth()
680 IVec4 getTextureFormatMantissaBitDepth (const TextureFormat& format) in getTextureFormatMantissaBitDepth()
696 BVec4 getTextureFormatChannelMask (const TextureFormat& format) in getTextureFormatChannelMask()
821 …DE_ASSERT(access.getFormat().order == TextureFormat::DS || access.getFormat().order == TextureForm… in clearDepth()
828 …DE_ASSERT(access.getFormat().order == TextureFormat::DS || access.getFormat().order == TextureForm… in clearStencil()
954 …sDepth = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::T… in fillWithComponentGradientsStyled()
955 …Stencil = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::T… in fillWithComponentGradientsStyled()
1046 …sDepth = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::T… in fillWithGrid()
1047 …Stencil = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::T… in fillWithGrid()
1147 …HasDepth = (src.getFormat().order == tcu::TextureFormat::DS || src.getFormat().order == tcu::Tex… in copy()
1148 …asStencil = (src.getFormat().order == tcu::TextureFormat::DS || src.getFormat().order == tcu::Tex… in copy()
1149 …HasDepth = (dst.getFormat().order == tcu::TextureFormat::DS || dst.getFormat().order == tcu::Tex… in copy()
1150 …asStencil = (dst.getFormat().order == tcu::TextureFormat::DS || dst.getFormat().order == tcu::Tex… in copy()
1249 const TextureFormat& format = access.getFormat(); in estimatePixelValueRange()
1386 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in toSamplerAccess()
1407 DE_ASSERT(baseAccess.getFormat().order == TextureFormat::DS || in toSamplerAccess()
1408 (mode == Sampler::MODE_DEPTH && baseAccess.getFormat().order == TextureFormat::D) || in toSamplerAccess()
1409 (mode == Sampler::MODE_STENCIL && baseAccess.getFormat().order == TextureFormat::S)); in toSamplerAccess()
1414 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in toSamplerAccess()
1419 return AccessType(TextureFormat(TextureFormat::D, TextureFormat::FLOAT), in toSamplerAccess()
1427 return AccessType(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), in toSamplerAccess()
1440 case TextureFormat::UNSIGNED_INT_16_8_8: in toSamplerAccess()
1445 return AccessType(TextureFormat(TextureFormat::D, TextureFormat::UNORM_INT16), in toSamplerAccess()
1453 return AccessType(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), in toSamplerAccess()
1466 case TextureFormat::UNSIGNED_INT_24_8: in toSamplerAccess()
1471 return AccessType(TextureFormat(TextureFormat::D, TextureFormat::UNORM_INT24), in toSamplerAccess()
1479 return AccessType(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), in toSamplerAccess()
1492 case TextureFormat::UNSIGNED_INT_24_8_REV: in toSamplerAccess()
1497 return AccessType(TextureFormat(TextureFormat::D, TextureFormat::UNORM_INT24), in toSamplerAccess()
1505 return AccessType(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), in toSamplerAccess()
1538 TextureFormat getEffectiveDepthStencilTextureFormat (const TextureFormat& baseFormat, Sampler::Dept… in getEffectiveDepthStencilTextureFormat()
1617 static const TextureSwizzle& getBorderColorReadSwizzle (TextureFormat::ChannelOrder order) in getBorderColorReadSwizzle()
1620 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in getBorderColorReadSwizzle()
1639 case TextureFormat::R: swizzle = &R; break; in getBorderColorReadSwizzle()
1640 case TextureFormat::A: swizzle = &A; break; in getBorderColorReadSwizzle()
1641 case TextureFormat::I: swizzle = &I; break; in getBorderColorReadSwizzle()
1642 case TextureFormat::L: swizzle = &L; break; in getBorderColorReadSwizzle()
1643 case TextureFormat::LA: swizzle = &LA; break; in getBorderColorReadSwizzle()
1644 case TextureFormat::RG: swizzle = &RG; break; in getBorderColorReadSwizzle()
1645 case TextureFormat::RA: swizzle = &RA; break; in getBorderColorReadSwizzle()
1646 case TextureFormat::RGB: swizzle = &RGB; break; in getBorderColorReadSwizzle()
1647 case TextureFormat::RGBA: swizzle = &RGBA; break; in getBorderColorReadSwizzle()
1648 case TextureFormat::ARGB: swizzle = &RGBA; break; in getBorderColorReadSwizzle()
1649 case TextureFormat::ABGR: swizzle = &RGBA; break; in getBorderColorReadSwizzle()
1650 case TextureFormat::BGR: swizzle = &RGB; break; in getBorderColorReadSwizzle()
1651 case TextureFormat::BGRA: swizzle = &RGBA; break; in getBorderColorReadSwizzle()
1652 case TextureFormat::sR: swizzle = &R; break; in getBorderColorReadSwizzle()
1653 case TextureFormat::sRG: swizzle = &RG; break; in getBorderColorReadSwizzle()
1654 case TextureFormat::sRGB: swizzle = &RGB; break; in getBorderColorReadSwizzle()
1655 case TextureFormat::sRGBA: swizzle = &RGBA; break; in getBorderColorReadSwizzle()
1656 case TextureFormat::sBGR: swizzle = &RGB; break; in getBorderColorReadSwizzle()
1657 case TextureFormat::sBGRA: swizzle = &RGBA; break; in getBorderColorReadSwizzle()
1658 case TextureFormat::D: swizzle = &D; break; in getBorderColorReadSwizzle()
1659 case TextureFormat::S: swizzle = &S; break; in getBorderColorReadSwizzle()
1661 case TextureFormat::DS: in getBorderColorReadSwizzle()
1717 static tcu::Vec4 getTextureBorderColorFloat (const TextureFormat& format, const Sampler& sampler) in getTextureBorderColorFloat()
1753 static tcu::IVec4 getTextureBorderColorInt (const TextureFormat& format, const Sampler& sampler) in getTextureBorderColorInt()
1782 static tcu::UVec4 getTextureBorderColorUint (const TextureFormat& format, const Sampler& sampler) in getTextureBorderColorUint()
1811 tcu::Vector<ScalarType, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& sampler) in sampleTextureBorder()
1835 template tcu::Vector<float, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& sa…
1836 template tcu::Vector<deInt32, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& s…
1837 template tcu::Vector<deUint32, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& …