Lines Matching refs:TextureFormat
275 inline float channelToFloat (const deUint8* value, TextureFormat::ChannelType type) in channelToFloat()
278 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in channelToFloat()
282 case TextureFormat::SNORM_INT8: return de::max(-1.0f, (float)*((const deInt8*)value) / 127.0f); in channelToFloat()
283 …case TextureFormat::SNORM_INT16: return de::max(-1.0f, (float)*((const deInt16*)value) / 32767.0f… in channelToFloat()
284 …case TextureFormat::SNORM_INT32: return de::max(-1.0f, (float)*((const deInt32*)value) / 21474836… in channelToFloat()
285 case TextureFormat::UNORM_INT8: return (float)*((const deUint8*)value) / 255.0f; in channelToFloat()
286 case TextureFormat::UNORM_INT16: return (float)*((const deUint16*)value) / 65535.0f; in channelToFloat()
287 case TextureFormat::UNORM_INT24: return (float)readUint24(value) / 16777215.0f; in channelToFloat()
288 case TextureFormat::UNORM_INT32: return (float)*((const deUint32*)value) / 4294967295.0f; in channelToFloat()
289 case TextureFormat::SIGNED_INT8: return (float)*((const deInt8*)value); in channelToFloat()
290 case TextureFormat::SIGNED_INT16: return (float)*((const deInt16*)value); in channelToFloat()
291 case TextureFormat::SIGNED_INT32: return (float)*((const deInt32*)value); in channelToFloat()
292 case TextureFormat::SIGNED_INT64: return (float)*((const deInt64*)value); in channelToFloat()
293 case TextureFormat::UNSIGNED_INT8: return (float)*((const deUint8*)value); in channelToFloat()
294 case TextureFormat::UNSIGNED_INT16: return (float)*((const deUint16*)value); in channelToFloat()
295 case TextureFormat::UNSIGNED_INT24: return (float)readUint24(value); in channelToFloat()
296 case TextureFormat::UNSIGNED_INT32: return (float)*((const deUint32*)value); in channelToFloat()
297 case TextureFormat::UNSIGNED_INT64: return (float)*((const deUint64*)value); in channelToFloat()
298 case TextureFormat::HALF_FLOAT: return deFloat16To32(*(const deFloat16*)value); in channelToFloat()
299 case TextureFormat::FLOAT: return *((const float*)value); in channelToFloat()
300 case TextureFormat::FLOAT64: return (float)*((const double*)value); in channelToFloat()
301 case TextureFormat::UNORM_SHORT_10: return (float)((*((const deUint16*)value)) >> 6u) / 1023.0f; in channelToFloat()
302 case TextureFormat::UNORM_SHORT_12: return (float)((*((const deUint16*)value)) >> 4u) / 4095.0f; in channelToFloat()
303 case TextureFormat::USCALED_INT8: return (float)*((const deUint8*)value); in channelToFloat()
304 case TextureFormat::USCALED_INT16: return (float)*((const deUint16*)value); in channelToFloat()
305 case TextureFormat::SSCALED_INT8: return (float)*((const deInt8*)value); in channelToFloat()
306 case TextureFormat::SSCALED_INT16: return (float)*((const deInt16*)value); in channelToFloat()
314 inline T channelToIntType (const deUint8* value, TextureFormat::ChannelType type) in channelToIntType()
317 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in channelToIntType()
321 case TextureFormat::SNORM_INT8: return (T)*((const deInt8*)value); in channelToIntType()
322 case TextureFormat::SNORM_INT16: return (T)*((const deInt16*)value); in channelToIntType()
323 case TextureFormat::SNORM_INT32: return (T)*((const deInt32*)value); in channelToIntType()
324 case TextureFormat::UNORM_INT8: return (T)*((const deUint8*)value); in channelToIntType()
325 case TextureFormat::UNORM_INT16: return (T)*((const deUint16*)value); in channelToIntType()
326 case TextureFormat::UNORM_INT24: return (T)readUint24(value); in channelToIntType()
327 case TextureFormat::UNORM_INT32: return (T)*((const deUint32*)value); in channelToIntType()
328 case TextureFormat::SIGNED_INT8: return (T)*((const deInt8*)value); in channelToIntType()
329 case TextureFormat::SIGNED_INT16: return (T)*((const deInt16*)value); in channelToIntType()
330 case TextureFormat::SIGNED_INT32: return (T)*((const deInt32*)value); in channelToIntType()
331 case TextureFormat::SIGNED_INT64: return (T)*((const deInt64*)value); in channelToIntType()
332 case TextureFormat::UNSIGNED_INT8: return (T)*((const deUint8*)value); in channelToIntType()
333 case TextureFormat::UNSIGNED_INT16: return (T)*((const deUint16*)value); in channelToIntType()
334 case TextureFormat::UNSIGNED_INT24: return (T)readUint24(value); in channelToIntType()
335 case TextureFormat::UNSIGNED_INT32: return (T)*((const deUint32*)value); in channelToIntType()
336 case TextureFormat::UNSIGNED_INT64: return (T)*((const deUint64*)value); in channelToIntType()
337 case TextureFormat::HALF_FLOAT: return (T)deFloat16To32(*(const deFloat16*)value); in channelToIntType()
338 case TextureFormat::FLOAT: return (T)*((const float*)value); in channelToIntType()
339 case TextureFormat::FLOAT64: return (T)*((const double*)value); in channelToIntType()
340 case TextureFormat::UNORM_SHORT_10: return (T)((*(((const deUint16*)value))) >> 6u); in channelToIntType()
341 case TextureFormat::UNORM_SHORT_12: return (T)((*(((const deUint16*)value))) >> 4u); in channelToIntType()
342 case TextureFormat::USCALED_INT8: return (T)*((const deUint8*)value); in channelToIntType()
343 case TextureFormat::USCALED_INT16: return (T)*((const deUint16*)value); in channelToIntType()
344 case TextureFormat::SSCALED_INT8: return (T)*((const deInt8*)value); in channelToIntType()
345 case TextureFormat::SSCALED_INT16: return (T)*((const deInt16*)value); in channelToIntType()
352 inline int channelToInt (const deUint8* value, TextureFormat::ChannelType type) in channelToInt()
357 void floatToChannel (deUint8* dst, float src, TextureFormat::ChannelType type) in floatToChannel()
360 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in floatToChannel()
364 …case TextureFormat::SNORM_INT8: *((deInt8*)dst) = convertSatRte<deInt8> (src * 127.0f); br… in floatToChannel()
365 …case TextureFormat::SNORM_INT16: *((deInt16*)dst) = convertSatRte<deInt16> (src * 32767.0f); b… in floatToChannel()
366 …case TextureFormat::SNORM_INT32: *((deInt32*)dst) = convertSatRte<deInt32> (src * 2147483647.0f)… in floatToChannel()
367 …case TextureFormat::UNORM_INT8: *((deUint8*)dst) = convertSatRte<deUint8> (src * 255.0f); br… in floatToChannel()
368 …case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src * 65535.0f); … in floatToChannel()
369 …case TextureFormat::UNORM_INT24: writeUint24(dst, convertSatRteUint24 (src * 16777215.0f)); … in floatToChannel()
370 …case TextureFormat::UNORM_INT32: *((deUint32*)dst) = convertSatRte<deUint32> (src * 4294967295.0… in floatToChannel()
371 case TextureFormat::SIGNED_INT8: *((deInt8*)dst) = convertSatRte<deInt8> (src); break; in floatToChannel()
372 case TextureFormat::SIGNED_INT16: *((deInt16*)dst) = convertSatRte<deInt16> (src); break; in floatToChannel()
373 case TextureFormat::SIGNED_INT32: *((deInt32*)dst) = convertSatRte<deInt32> (src); break; in floatToChannel()
374 case TextureFormat::UNSIGNED_INT8: *((deUint8*)dst) = convertSatRte<deUint8> (src); break; in floatToChannel()
375 …case TextureFormat::UNSIGNED_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src); brea… in floatToChannel()
376 case TextureFormat::UNSIGNED_INT24: writeUint24(dst, convertSatRteUint24 (src)); break; in floatToChannel()
377 …case TextureFormat::UNSIGNED_INT32: *((deUint32*)dst) = convertSatRte<deUint32> (src); brea… in floatToChannel()
378 case TextureFormat::HALF_FLOAT: *((deFloat16*)dst) = deFloat32To16 (src); break; in floatToChannel()
379 case TextureFormat::FLOAT: *((float*)dst) = src; break; in floatToChannel()
380 case TextureFormat::FLOAT64: *((double*)dst) = (double)src; break; in floatToChannel()
381 …case TextureFormat::UNORM_SHORT_10: *((deUint16*)dst) = (deUint16)(convertSatRteUint10(src * 102… in floatToChannel()
382 …case TextureFormat::UNORM_SHORT_12: *((deUint16*)dst) = (deUint16)(convertSatRteUint12(src * 409… in floatToChannel()
383 case TextureFormat::USCALED_INT8: *((deUint8*)dst) = convertSatRte<deUint8> (src); break; in floatToChannel()
384 …case TextureFormat::USCALED_INT16: *((deUint16*)dst) = convertSatRte<deUint16> (src); break; in floatToChannel()
385 case TextureFormat::SSCALED_INT8: *((deInt8*)dst) = convertSatRte<deInt8> (src); break; in floatToChannel()
386 case TextureFormat::SSCALED_INT16: *((deInt16*)dst) = convertSatRte<deInt16> (src); break; in floatToChannel()
448 void intToChannel (deUint8* dst, int src, TextureFormat::ChannelType type) in intToChannel()
451 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in intToChannel()
455 case TextureFormat::SNORM_INT8: *((deInt8*)dst) = convertSat<deInt8> (src); break; in intToChannel()
456 case TextureFormat::SNORM_INT16: *((deInt16*)dst) = convertSat<deInt16> (src); break; in intToChannel()
457 case TextureFormat::UNORM_INT8: *((deUint8*)dst) = convertSat<deUint8> (src); break; in intToChannel()
458 case TextureFormat::UNORM_INT16: *((deUint16*)dst) = convertSat<deUint16> (src); break; in intToChannel()
459 case TextureFormat::UNORM_INT24: writeUint24(dst, convertSatUint24 (src)); break; in intToChannel()
460 case TextureFormat::SIGNED_INT8: *((deInt8*)dst) = convertSat<deInt8> (src); break; in intToChannel()
461 case TextureFormat::SIGNED_INT16: *((deInt16*)dst) = convertSat<deInt16> (src); break; in intToChannel()
462 case TextureFormat::SIGNED_INT32: *((deInt32*)dst) = convertSat<deInt32> (src); break; in intToChannel()
463 case TextureFormat::SIGNED_INT64: *((deInt64*)dst) = convertSat<deInt64> ((deInt64)src); break; in intToChannel()
464 …case TextureFormat::UNSIGNED_INT8: *((deUint8*)dst) = convertSat<deUint8> ((deUint32)src); break; in intToChannel()
465 …case TextureFormat::UNSIGNED_INT16: *((deUint16*)dst) = convertSat<deUint16> ((deUint32)src); br… in intToChannel()
466 …case TextureFormat::UNSIGNED_INT24: writeUint24(dst, convertSatUint24 ((deUint32)src)); break; in intToChannel()
467 …case TextureFormat::UNSIGNED_INT32: *((deUint32*)dst) = convertSat<deUint32> ((deUint32)src); br… in intToChannel()
468 …case TextureFormat::UNSIGNED_INT64: *((deUint64*)dst) = convertSat<deUint64> ((deUint64)src); br… in intToChannel()
469 case TextureFormat::HALF_FLOAT: *((deFloat16*)dst) = deFloat32To16((float)src); break; in intToChannel()
470 case TextureFormat::FLOAT: *((float*)dst) = (float)src; break; in intToChannel()
471 case TextureFormat::FLOAT64: *((double*)dst) = (double)src; break; in intToChannel()
472 …case TextureFormat::UNORM_SHORT_10: *((deUint16*)dst) = (deUint16)(convertSatUint10(src) << 6u);… in intToChannel()
473 …case TextureFormat::UNORM_SHORT_12: *((deUint16*)dst) = (deUint16)(convertSatUint12(src) << 4u);… in intToChannel()
474 case TextureFormat::USCALED_INT8: *((deUint8*)dst) = convertSat<deUint8> ((deUint32)src); break; in intToChannel()
475 …case TextureFormat::USCALED_INT16: *((deUint16*)dst) = convertSat<deUint16> ((deUint32)src); bre… in intToChannel()
476 case TextureFormat::SSCALED_INT8: *((deInt8*)dst) = convertSat<deInt8> (src); break; in intToChannel()
477 case TextureFormat::SSCALED_INT16: *((deInt16*)dst) = convertSat<deInt16> (src); break; in intToChannel()
559 bool isColorOrder (TextureFormat::ChannelOrder order) in isColorOrder()
561 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in isColorOrder()
565 case TextureFormat::R: in isColorOrder()
566 case TextureFormat::A: in isColorOrder()
567 case TextureFormat::I: in isColorOrder()
568 case TextureFormat::L: in isColorOrder()
569 case TextureFormat::LA: in isColorOrder()
570 case TextureFormat::RG: in isColorOrder()
571 case TextureFormat::RA: in isColorOrder()
572 case TextureFormat::RGB: in isColorOrder()
573 case TextureFormat::RGBA: in isColorOrder()
574 case TextureFormat::ARGB: in isColorOrder()
575 case TextureFormat::ABGR: in isColorOrder()
576 case TextureFormat::BGR: in isColorOrder()
577 case TextureFormat::BGRA: in isColorOrder()
578 case TextureFormat::sR: in isColorOrder()
579 case TextureFormat::sRG: in isColorOrder()
580 case TextureFormat::sRGB: in isColorOrder()
581 case TextureFormat::sRGBA: in isColorOrder()
582 case TextureFormat::sBGR: in isColorOrder()
583 case TextureFormat::sBGRA: in isColorOrder()
598 bool isValid (TextureFormat format) in isValid()
604 case TextureFormat::SNORM_INT8: in isValid()
605 case TextureFormat::SNORM_INT16: in isValid()
606 case TextureFormat::SNORM_INT32: in isValid()
609 case TextureFormat::UNORM_INT8: in isValid()
610 case TextureFormat::UNORM_INT16: in isValid()
611 case TextureFormat::UNORM_INT24: in isValid()
612 case TextureFormat::UNORM_INT32: in isValid()
613 return isColor || format.order == TextureFormat::D; in isValid()
615 case TextureFormat::UNORM_BYTE_44: in isValid()
616 case TextureFormat::UNSIGNED_BYTE_44: in isValid()
617 return format.order == TextureFormat::RG; in isValid()
619 case TextureFormat::UNORM_SHORT_565: in isValid()
620 case TextureFormat::UNORM_SHORT_555: in isValid()
621 case TextureFormat::UNSIGNED_SHORT_565: in isValid()
622 return format.order == TextureFormat::RGB || format.order == TextureFormat::BGR; in isValid()
624 case TextureFormat::UNORM_SHORT_4444: in isValid()
625 case TextureFormat::UNORM_SHORT_5551: in isValid()
626 case TextureFormat::UNSIGNED_SHORT_4444: in isValid()
627 case TextureFormat::UNSIGNED_SHORT_5551: in isValid()
628 return format.order == TextureFormat::RGBA || format.order == TextureFormat::BGRA in isValid()
629 || format.order == TextureFormat::ARGB || format.order == TextureFormat::ABGR; in isValid()
631 case TextureFormat::UNORM_SHORT_1555: in isValid()
632 return format.order == TextureFormat::ARGB; in isValid()
634 case TextureFormat::UNORM_INT_101010: in isValid()
635 return format.order == TextureFormat::RGB; in isValid()
637 case TextureFormat::SNORM_INT_1010102_REV: in isValid()
638 case TextureFormat::UNORM_INT_1010102_REV: in isValid()
639 case TextureFormat::SIGNED_INT_1010102_REV: in isValid()
640 case TextureFormat::UNSIGNED_INT_1010102_REV: in isValid()
641 case TextureFormat::USCALED_INT_1010102_REV: in isValid()
642 case TextureFormat::SSCALED_INT_1010102_REV: in isValid()
643 return format.order == TextureFormat::RGBA || format.order == TextureFormat::BGRA; in isValid()
645 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: in isValid()
646 case TextureFormat::UNSIGNED_INT_999_E5_REV: in isValid()
647 return format.order == TextureFormat::RGB; in isValid()
649 case TextureFormat::UNSIGNED_INT_16_8_8: in isValid()
650 return format.order == TextureFormat::DS; in isValid()
652 case TextureFormat::UNSIGNED_INT_24_8: in isValid()
653 case TextureFormat::UNSIGNED_INT_24_8_REV: in isValid()
654 return format.order == TextureFormat::D || format.order == TextureFormat::DS; in isValid()
656 case TextureFormat::SIGNED_INT8: in isValid()
657 case TextureFormat::SIGNED_INT16: in isValid()
658 case TextureFormat::SIGNED_INT32: in isValid()
659 case TextureFormat::SSCALED_INT8: in isValid()
660 case TextureFormat::SSCALED_INT16: in isValid()
661 case TextureFormat::SIGNED_INT64: in isValid()
664 case TextureFormat::UNSIGNED_INT8: in isValid()
665 case TextureFormat::UNSIGNED_INT16: in isValid()
666 case TextureFormat::UNSIGNED_INT24: in isValid()
667 case TextureFormat::UNSIGNED_INT32: in isValid()
668 case TextureFormat::USCALED_INT8: in isValid()
669 case TextureFormat::USCALED_INT16: in isValid()
670 case TextureFormat::UNSIGNED_INT64: in isValid()
671 return isColor || format.order == TextureFormat::S; in isValid()
673 case TextureFormat::HALF_FLOAT: in isValid()
674 case TextureFormat::FLOAT: in isValid()
675 case TextureFormat::FLOAT64: in isValid()
676 return isColor || format.order == TextureFormat::D; in isValid()
678 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in isValid()
679 return format.order == TextureFormat::DS; in isValid()
681 case TextureFormat::UNORM_SHORT_10: in isValid()
682 case TextureFormat::UNORM_SHORT_12: in isValid()
690 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in isValid()
693 int getNumUsedChannels (TextureFormat::ChannelOrder order) in getNumUsedChannels()
696 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in getNumUsedChannels()
700 case TextureFormat::R: return 1; in getNumUsedChannels()
701 case TextureFormat::A: return 1; in getNumUsedChannels()
702 case TextureFormat::I: return 1; in getNumUsedChannels()
703 case TextureFormat::L: return 1; in getNumUsedChannels()
704 case TextureFormat::LA: return 2; in getNumUsedChannels()
705 case TextureFormat::RG: return 2; in getNumUsedChannels()
706 case TextureFormat::RA: return 2; in getNumUsedChannels()
707 case TextureFormat::RGB: return 3; in getNumUsedChannels()
708 case TextureFormat::RGBA: return 4; in getNumUsedChannels()
709 case TextureFormat::ARGB: return 4; in getNumUsedChannels()
710 case TextureFormat::ABGR: return 4; in getNumUsedChannels()
711 case TextureFormat::BGR: return 3; in getNumUsedChannels()
712 case TextureFormat::BGRA: return 4; in getNumUsedChannels()
713 case TextureFormat::sR: return 1; in getNumUsedChannels()
714 case TextureFormat::sRG: return 2; in getNumUsedChannels()
715 case TextureFormat::sRGB: return 3; in getNumUsedChannels()
716 case TextureFormat::sRGBA: return 4; in getNumUsedChannels()
717 case TextureFormat::sBGR: return 3; in getNumUsedChannels()
718 case TextureFormat::sBGRA: return 4; in getNumUsedChannels()
719 case TextureFormat::D: return 1; in getNumUsedChannels()
720 case TextureFormat::S: return 1; in getNumUsedChannels()
721 case TextureFormat::DS: return 2; in getNumUsedChannels()
728 int getChannelSize (TextureFormat::ChannelType type) in getChannelSize()
731 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in getChannelSize()
735 case TextureFormat::SNORM_INT8: return 1; in getChannelSize()
736 case TextureFormat::SNORM_INT16: return 2; in getChannelSize()
737 case TextureFormat::SNORM_INT32: return 4; in getChannelSize()
738 case TextureFormat::UNORM_INT8: return 1; in getChannelSize()
739 case TextureFormat::UNORM_INT16: return 2; in getChannelSize()
740 case TextureFormat::UNORM_INT24: return 3; in getChannelSize()
741 case TextureFormat::UNORM_INT32: return 4; in getChannelSize()
742 case TextureFormat::SIGNED_INT8: return 1; in getChannelSize()
743 case TextureFormat::SIGNED_INT16: return 2; in getChannelSize()
744 case TextureFormat::SIGNED_INT32: return 4; in getChannelSize()
745 case TextureFormat::SIGNED_INT64: return 8; in getChannelSize()
746 case TextureFormat::UNSIGNED_INT8: return 1; in getChannelSize()
747 case TextureFormat::UNSIGNED_INT16: return 2; in getChannelSize()
748 case TextureFormat::UNSIGNED_INT24: return 3; in getChannelSize()
749 case TextureFormat::UNSIGNED_INT32: return 4; in getChannelSize()
750 case TextureFormat::UNSIGNED_INT64: return 8; in getChannelSize()
751 case TextureFormat::HALF_FLOAT: return 2; in getChannelSize()
752 case TextureFormat::FLOAT: return 4; in getChannelSize()
753 case TextureFormat::FLOAT64: return 8; in getChannelSize()
754 case TextureFormat::UNORM_SHORT_10: return 2; in getChannelSize()
755 case TextureFormat::UNORM_SHORT_12: return 2; in getChannelSize()
756 case TextureFormat::USCALED_INT8: return 1; in getChannelSize()
757 case TextureFormat::USCALED_INT16: return 2; in getChannelSize()
758 case TextureFormat::SSCALED_INT8: return 1; in getChannelSize()
759 case TextureFormat::SSCALED_INT16: return 2; in getChannelSize()
767 int getPixelSize (TextureFormat format) in getPixelSize()
769 const TextureFormat::ChannelOrder order = format.order; in getPixelSize()
770 const TextureFormat::ChannelType type = format.type; in getPixelSize()
775 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in getPixelSize()
779 case TextureFormat::UNORM_BYTE_44: in getPixelSize()
780 case TextureFormat::UNSIGNED_BYTE_44: in getPixelSize()
783 case TextureFormat::UNORM_SHORT_565: in getPixelSize()
784 case TextureFormat::UNORM_SHORT_555: in getPixelSize()
785 case TextureFormat::UNORM_SHORT_4444: in getPixelSize()
786 case TextureFormat::UNORM_SHORT_5551: in getPixelSize()
787 case TextureFormat::UNORM_SHORT_1555: in getPixelSize()
788 case TextureFormat::UNSIGNED_SHORT_565: in getPixelSize()
789 case TextureFormat::UNSIGNED_SHORT_4444: in getPixelSize()
790 case TextureFormat::UNSIGNED_SHORT_5551: in getPixelSize()
793 case TextureFormat::UNORM_INT_101010: in getPixelSize()
794 case TextureFormat::UNSIGNED_INT_999_E5_REV: in getPixelSize()
795 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: in getPixelSize()
796 case TextureFormat::SNORM_INT_1010102_REV: in getPixelSize()
797 case TextureFormat::UNORM_INT_1010102_REV: in getPixelSize()
798 case TextureFormat::SIGNED_INT_1010102_REV: in getPixelSize()
799 case TextureFormat::UNSIGNED_INT_1010102_REV: in getPixelSize()
800 case TextureFormat::UNSIGNED_INT_24_8: in getPixelSize()
801 case TextureFormat::UNSIGNED_INT_24_8_REV: in getPixelSize()
802 case TextureFormat::UNSIGNED_INT_16_8_8: in getPixelSize()
803 case TextureFormat::USCALED_INT_1010102_REV: in getPixelSize()
804 case TextureFormat::SSCALED_INT_1010102_REV: in getPixelSize()
807 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in getPixelSize()
815 int TextureFormat::getPixelSize (void) const in getPixelSize()
820 const TextureSwizzle& getChannelReadSwizzle (TextureFormat::ChannelOrder order) in getChannelReadSwizzle()
823 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in getChannelReadSwizzle()
844 case TextureFormat::R: return R; in getChannelReadSwizzle()
845 case TextureFormat::A: return A; in getChannelReadSwizzle()
846 case TextureFormat::I: return I; in getChannelReadSwizzle()
847 case TextureFormat::L: return L; in getChannelReadSwizzle()
848 case TextureFormat::LA: return LA; in getChannelReadSwizzle()
849 case TextureFormat::RG: return RG; in getChannelReadSwizzle()
850 case TextureFormat::RA: return RA; in getChannelReadSwizzle()
851 case TextureFormat::RGB: return RGB; in getChannelReadSwizzle()
852 case TextureFormat::RGBA: return RGBA; in getChannelReadSwizzle()
853 case TextureFormat::ARGB: return ARGB; in getChannelReadSwizzle()
854 case TextureFormat::ABGR: return ABGR; in getChannelReadSwizzle()
855 case TextureFormat::BGR: return BGR; in getChannelReadSwizzle()
856 case TextureFormat::BGRA: return BGRA; in getChannelReadSwizzle()
857 case TextureFormat::sR: return R; in getChannelReadSwizzle()
858 case TextureFormat::sRG: return RG; in getChannelReadSwizzle()
859 case TextureFormat::sRGB: return RGB; in getChannelReadSwizzle()
860 case TextureFormat::sRGBA: return RGBA; in getChannelReadSwizzle()
861 case TextureFormat::sBGR: return BGR; in getChannelReadSwizzle()
862 case TextureFormat::sBGRA: return BGRA; in getChannelReadSwizzle()
863 case TextureFormat::D: return D; in getChannelReadSwizzle()
864 case TextureFormat::S: return S; in getChannelReadSwizzle()
866 case TextureFormat::DS: in getChannelReadSwizzle()
876 const TextureSwizzle& getChannelWriteSwizzle (TextureFormat::ChannelOrder order) in getChannelWriteSwizzle()
879 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in getChannelWriteSwizzle()
900 case TextureFormat::R: return R; in getChannelWriteSwizzle()
901 case TextureFormat::A: return A; in getChannelWriteSwizzle()
902 case TextureFormat::I: return I; in getChannelWriteSwizzle()
903 case TextureFormat::L: return L; in getChannelWriteSwizzle()
904 case TextureFormat::LA: return LA; in getChannelWriteSwizzle()
905 case TextureFormat::RG: return RG; in getChannelWriteSwizzle()
906 case TextureFormat::RA: return RA; in getChannelWriteSwizzle()
907 case TextureFormat::RGB: return RGB; in getChannelWriteSwizzle()
908 case TextureFormat::RGBA: return RGBA; in getChannelWriteSwizzle()
909 case TextureFormat::ARGB: return ARGB; in getChannelWriteSwizzle()
910 case TextureFormat::ABGR: return ABGR; in getChannelWriteSwizzle()
911 case TextureFormat::BGR: return BGR; in getChannelWriteSwizzle()
912 case TextureFormat::BGRA: return BGRA; in getChannelWriteSwizzle()
913 case TextureFormat::sR: return R; in getChannelWriteSwizzle()
914 case TextureFormat::sRG: return RG; in getChannelWriteSwizzle()
915 case TextureFormat::sRGB: return RGB; in getChannelWriteSwizzle()
916 case TextureFormat::sRGBA: return RGBA; in getChannelWriteSwizzle()
917 case TextureFormat::sBGR: return BGR; in getChannelWriteSwizzle()
918 case TextureFormat::sBGRA: return BGRA; in getChannelWriteSwizzle()
919 case TextureFormat::D: return D; in getChannelWriteSwizzle()
920 case TextureFormat::S: return S; in getChannelWriteSwizzle()
922 case TextureFormat::DS: in getChannelWriteSwizzle()
932 IVec3 calculatePackedPitch (const TextureFormat& format, const IVec3& size) in calculatePackedPitch()
949 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, int width, int height,… in ConstPixelBufferAccess()
959 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, const IVec3& size, con… in ConstPixelBufferAccess()
969 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, int width, int height,… in ConstPixelBufferAccess()
979 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, const IVec3& size, con… in ConstPixelBufferAccess()
990 ConstPixelBufferAccess::ConstPixelBufferAccess(const TextureFormat& format, const IVec3& size, cons… in ConstPixelBufferAccess()
1010 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, int width, int height, int depth… in PixelBufferAccess()
1015 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, const IVec3& size, void* data) in PixelBufferAccess()
1020 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, int width, int height, int depth… in PixelBufferAccess()
1025 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, const IVec3& size, const IVec3& … in PixelBufferAccess()
1030 PixelBufferAccess::PixelBufferAccess(const TextureFormat& format, const IVec3& size, const IVec3& p… in PixelBufferAccess()
1043 Vector<T, 4> swizzleGe (const Vector<T, 4>& v, TextureFormat::ChannelOrder src, TextureFormat::Chan… in swizzleGe()
1049 if ((src == TextureFormat::RGBA && dst == TextureFormat::ARGB) || in swizzleGe()
1050 (src == TextureFormat::BGRA && dst == TextureFormat::ABGR)) in swizzleGe()
1053 if ((src == TextureFormat::ARGB && dst == TextureFormat::RGBA) || in swizzleGe()
1054 (src == TextureFormat::ABGR && dst == TextureFormat::BGRA)) in swizzleGe()
1057 if ((src == TextureFormat::BGRA && dst == TextureFormat::ARGB) || in swizzleGe()
1058 (src == TextureFormat::ABGR && dst == TextureFormat::RGBA) || in swizzleGe()
1059 (src == TextureFormat::RGBA && dst == TextureFormat::ABGR) || in swizzleGe()
1060 (src == TextureFormat::ARGB && dst == TextureFormat::BGRA)) in swizzleGe()
1063 if ((src == TextureFormat::RGB && dst == TextureFormat::BGR) || in swizzleGe()
1064 (src == TextureFormat::BGR && dst == TextureFormat::RGB) || in swizzleGe()
1065 (src == TextureFormat::RGBA && dst == TextureFormat::BGRA) || in swizzleGe()
1066 (src == TextureFormat::BGRA && dst == TextureFormat::RGBA)) in swizzleGe()
1080 DE_ASSERT(m_format.order != TextureFormat::DS); // combined formats cannot be accessed directly in getPixel()
1085 if (m_format.type == TextureFormat::UNORM_INT8) in getPixel()
1087 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA) in getPixel()
1089 else if (m_format.order == TextureFormat::RGB || m_format.order == TextureFormat::sRGB) in getPixel()
1105 case TextureFormat::UNORM_BYTE_44: return Vec4(UN8 (4, 4), UN8 ( 0, 4), 0.0f, 1.0f); in getPixel()
1106 …case TextureFormat::UNSIGNED_BYTE_44: return UVec4(UI8 (4, 4), UI8 ( 0, 4), 0u, 1u).cast<f… in getPixel()
1107 …case TextureFormat::UNORM_SHORT_565: return swizzleGe( Vec4(UN16(11, 5), UN16( 5, 6), UN16( 0,… in getPixel()
1108 …case TextureFormat::UNSIGNED_SHORT_565: return swizzleGe(UVec4(UI16(11, 5), UI16( 5, 6), UI16(… in getPixel()
1109 …case TextureFormat::UNORM_SHORT_555: return swizzleGe( Vec4(UN16(10, 5), UN16( 5, 5), UN16( 0,… in getPixel()
1110 …case TextureFormat::UNORM_SHORT_4444: return swizzleGe( Vec4(UN16(12, 4), UN16( 8, 4), UN16( 4… in getPixel()
1111 …ase TextureFormat::UNSIGNED_SHORT_4444: return swizzleGe(UVec4(UI16(12, 4), UI16( 8, 4), UI16( … in getPixel()
1112 …case TextureFormat::UNORM_SHORT_5551: return swizzleGe( Vec4(UN16(11, 5), UN16( 6, 5), UN16( 1… in getPixel()
1113 …ase TextureFormat::UNSIGNED_SHORT_5551: return swizzleGe(UVec4(UI16(11, 5), UI16( 6, 5), UI16( … in getPixel()
1114 …case TextureFormat::UNORM_INT_101010: return Vec4(UN32(22, 10), UN32(12, 10), UN32( 2, 10), … in getPixel()
1115 …se TextureFormat::UNORM_INT_1010102_REV: return swizzleGe( Vec4(UN32( 0, 10), UN32(10, 10), UN32(… in getPixel()
1116 …se TextureFormat::SNORM_INT_1010102_REV: return swizzleGe( Vec4(SN32( 0, 10), SN32(10, 10), SN32(… in getPixel()
1117 case TextureFormat::USCALED_INT_1010102_REV: in getPixel()
1118 …e TextureFormat::UNSIGNED_INT_1010102_REV: return swizzleGe( UVec4(UI32(0, 10), UI32(10, 10), UI32… in getPixel()
1119 case TextureFormat::SSCALED_INT_1010102_REV: in getPixel()
1120 …e TextureFormat::SIGNED_INT_1010102_REV: return swizzleGe( UVec4(SI32(0, 10), SI32(10, 10), SI32(… in getPixel()
1121 case TextureFormat::UNSIGNED_INT_999_E5_REV: return unpackRGB999E5(*((const deUint32*)pixelPtr)); in getPixel()
1123 case TextureFormat::UNORM_SHORT_1555: in getPixel()
1124 DE_ASSERT(m_format.order == TextureFormat::ARGB); in getPixel()
1127 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: in getPixel()
1176 static tcu::Vector<T, 4> getPixelIntGeneric (const deUint8* pixelPtr, const tcu::TextureFormat& for… in getPixelIntGeneric()
1217 DE_ASSERT(m_format.order != TextureFormat::DS); // combined formats cannot be accessed directly in getPixelInt()
1222 if (m_format.type == TextureFormat::UNORM_INT8) in getPixelInt()
1224 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA) in getPixelInt()
1226 else if (m_format.order == TextureFormat::RGB || m_format.order == TextureFormat::sRGB) in getPixelInt()
1237 case TextureFormat::UNSIGNED_BYTE_44: // Fall-through in getPixelInt()
1238 …case TextureFormat::UNORM_BYTE_44: return UVec4(U8 ( 4, 4), U8 ( 0, 4), 0u, 1u).cast<int>(… in getPixelInt()
1239 case TextureFormat::UNSIGNED_SHORT_565: // Fall-through in getPixelInt()
1240 …case TextureFormat::UNORM_SHORT_565: return swizzleGe(UVec4(U16(11, 5), U16( 5, 6), U16( 0, 5… in getPixelInt()
1241 …case TextureFormat::UNORM_SHORT_555: return swizzleGe(UVec4(U16(10, 5), U16( 5, 5), U16( 0, 5… in getPixelInt()
1242 case TextureFormat::UNSIGNED_SHORT_4444: // Fall-through in getPixelInt()
1243 … TextureFormat::UNORM_SHORT_4444: return swizzleGe(UVec4(U16(12, 4), U16( 8, 4), U16( 4, 4), … in getPixelInt()
1244 case TextureFormat::UNSIGNED_SHORT_5551: // Fall-through in getPixelInt()
1245 … TextureFormat::UNORM_SHORT_5551: return swizzleGe(UVec4(U16(11, 5), U16( 6, 5), U16( 1, 5), … in getPixelInt()
1246 …case TextureFormat::UNORM_INT_101010: return UVec4(U32(22, 10), U32(12, 10), U32( 2, 10), 1).… in getPixelInt()
1247 case TextureFormat::UNORM_INT_1010102_REV: // Fall-through in getPixelInt()
1248 case TextureFormat::USCALED_INT_1010102_REV: // Fall-through in getPixelInt()
1249 …ase TextureFormat::UNSIGNED_INT_1010102_REV: return swizzleGe(UVec4(U32( 0, 10), U32(10, 10), U32(… in getPixelInt()
1250 case TextureFormat::SNORM_INT_1010102_REV: // Fall-through in getPixelInt()
1251 case TextureFormat::SSCALED_INT_1010102_REV: // Fall-through in getPixelInt()
1252 …ase TextureFormat::SIGNED_INT_1010102_REV: return swizzleGe(IVec4(S32( 0, 10), S32(10, 10), S32(2… in getPixelInt()
1254 case TextureFormat::UNORM_SHORT_1555: in getPixelInt()
1255 DE_ASSERT(m_format.order == TextureFormat::ARGB); in getPixelInt()
1274 if (m_format.type == TextureFormat::UNORM_INT8 && in getPixelInt64()
1275 (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA || in getPixelInt64()
1276 m_format.order == TextureFormat::RGB || m_format.order == TextureFormat::sRGB)) in getPixelInt64()
1283 case TextureFormat::UNSIGNED_BYTE_44: in getPixelInt64()
1284 case TextureFormat::UNORM_BYTE_44: in getPixelInt64()
1285 case TextureFormat::UNSIGNED_SHORT_565: in getPixelInt64()
1286 case TextureFormat::UNORM_SHORT_565: in getPixelInt64()
1287 case TextureFormat::UNORM_SHORT_555: in getPixelInt64()
1288 case TextureFormat::UNSIGNED_SHORT_4444: in getPixelInt64()
1289 case TextureFormat::UNORM_SHORT_4444: in getPixelInt64()
1290 case TextureFormat::UNSIGNED_SHORT_5551: in getPixelInt64()
1291 case TextureFormat::UNORM_SHORT_5551: in getPixelInt64()
1292 case TextureFormat::UNORM_INT_101010: in getPixelInt64()
1293 case TextureFormat::UNORM_INT_1010102_REV: in getPixelInt64()
1294 case TextureFormat::USCALED_INT_1010102_REV: in getPixelInt64()
1295 case TextureFormat::UNSIGNED_INT_1010102_REV: in getPixelInt64()
1296 case TextureFormat::SNORM_INT_1010102_REV: in getPixelInt64()
1297 case TextureFormat::SSCALED_INT_1010102_REV: in getPixelInt64()
1298 case TextureFormat::SIGNED_INT_1010102_REV: in getPixelInt64()
1299 case TextureFormat::UNORM_SHORT_1555: in getPixelInt64()
1351 case TextureFormat::UNSIGNED_INT_16_8_8: in getPixDepth()
1352 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixDepth()
1355 case TextureFormat::UNSIGNED_INT_24_8: in getPixDepth()
1356 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS); in getPixDepth()
1359 case TextureFormat::UNSIGNED_INT_24_8_REV: in getPixDepth()
1360 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS); in getPixDepth()
1363 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in getPixDepth()
1364 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixDepth()
1368 DE_ASSERT(m_format.order == TextureFormat::D); // no other combined depth stencil types in getPixDepth()
1383 case TextureFormat::UNSIGNED_INT_24_8_REV: in getPixStencil()
1384 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixStencil()
1387 case TextureFormat::UNSIGNED_INT_16_8_8: in getPixStencil()
1388 case TextureFormat::UNSIGNED_INT_24_8: in getPixStencil()
1389 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixStencil()
1392 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in getPixStencil()
1393 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixStencil()
1398 DE_ASSERT(m_format.order == TextureFormat::S); // no other combined depth stencil types in getPixStencil()
1410 DE_ASSERT(m_format.order != TextureFormat::DS); // combined formats cannot be accessed directly in setPixel()
1415 if (m_format.type == TextureFormat::UNORM_INT8) in setPixel()
1417 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA) in setPixel()
1422 else if (m_format.order == TextureFormat::RGB || m_format.order == TextureFormat::sRGB) in setPixel()
1436 …case TextureFormat::UNORM_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8)(PN(color[0], 4, 4) | PN(col… in setPixel()
1437 …case TextureFormat::UNSIGNED_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8)(PU((deUint32)color[0], 4,… in setPixel()
1438 …case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PN(color[0], 22, 10) | PN(color[1],… in setPixel()
1440 case TextureFormat::UNORM_SHORT_565: in setPixel()
1442 const Vec4 swizzled = swizzleGe(color, TextureFormat::RGB, m_format.order); in setPixel()
1447 case TextureFormat::UNSIGNED_SHORT_565: in setPixel()
1449 const UVec4 swizzled = swizzleGe(color.cast<deUint32>(), TextureFormat::RGB, m_format.order); in setPixel()
1454 case TextureFormat::UNORM_SHORT_555: in setPixel()
1456 const Vec4 swizzled = swizzleGe(color, TextureFormat::RGB, m_format.order); in setPixel()
1461 case TextureFormat::UNORM_SHORT_4444: in setPixel()
1463 const Vec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1468 case TextureFormat::UNSIGNED_SHORT_4444: in setPixel()
1470 const UVec4 swizzled = swizzleGe(color.cast<deUint32>(), TextureFormat::RGBA, m_format.order); in setPixel()
1475 case TextureFormat::UNORM_SHORT_5551: in setPixel()
1477 const Vec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1482 case TextureFormat::UNORM_SHORT_1555: in setPixel()
1489 case TextureFormat::UNSIGNED_SHORT_5551: in setPixel()
1491 const UVec4 swizzled = swizzleGe(color.cast<deUint32>(), TextureFormat::RGBA, m_format.order); in setPixel()
1496 case TextureFormat::UNORM_INT_1010102_REV: in setPixel()
1498 const Vec4 u = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1503 case TextureFormat::SNORM_INT_1010102_REV: in setPixel()
1505 const Vec4 u = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1510 case TextureFormat::UNSIGNED_INT_1010102_REV: in setPixel()
1511 case TextureFormat::USCALED_INT_1010102_REV: in setPixel()
1513 const UVec4 u = swizzleGe(color.cast<deUint32>(), TextureFormat::RGBA, m_format.order); in setPixel()
1518 case TextureFormat::SIGNED_INT_1010102_REV: in setPixel()
1519 case TextureFormat::SSCALED_INT_1010102_REV: in setPixel()
1521 const IVec4 u = swizzleGe(color.cast<deInt32>(), TextureFormat::RGBA, m_format.order); in setPixel()
1526 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: in setPixel()
1530 case TextureFormat::UNSIGNED_INT_999_E5_REV: in setPixel()
1562 DE_ASSERT(m_format.order != TextureFormat::DS); // combined formats cannot be accessed directly in setPixel()
1567 if (m_format.type == TextureFormat::UNORM_INT8) in setPixel()
1569 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA) in setPixel()
1574 else if (m_format.order == TextureFormat::RGB || m_format.order == TextureFormat::sRGB) in setPixel()
1586 case TextureFormat::UNSIGNED_BYTE_44: // Fall-through in setPixel()
1587 …case TextureFormat::UNORM_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8 )(PU(color[0], 4, 4) | PU(c… in setPixel()
1588 …case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PU(color[0], 22, 10) | PU(color[1],… in setPixel()
1590 case TextureFormat::UNORM_SHORT_565: in setPixel()
1591 case TextureFormat::UNSIGNED_SHORT_565: in setPixel()
1593 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGB, m_format.order); in setPixel()
1598 case TextureFormat::UNORM_SHORT_555: in setPixel()
1600 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGB, m_format.order); in setPixel()
1605 case TextureFormat::UNORM_SHORT_4444: in setPixel()
1606 case TextureFormat::UNSIGNED_SHORT_4444: in setPixel()
1608 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1613 case TextureFormat::UNORM_SHORT_5551: in setPixel()
1614 case TextureFormat::UNSIGNED_SHORT_5551: in setPixel()
1616 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1621 case TextureFormat::UNORM_SHORT_1555: in setPixel()
1628 case TextureFormat::UNORM_INT_1010102_REV: in setPixel()
1629 case TextureFormat::UNSIGNED_INT_1010102_REV: in setPixel()
1630 case TextureFormat::USCALED_INT_1010102_REV: in setPixel()
1632 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1637 case TextureFormat::SNORM_INT_1010102_REV: in setPixel()
1638 case TextureFormat::SIGNED_INT_1010102_REV: in setPixel()
1639 case TextureFormat::SSCALED_INT_1010102_REV: in setPixel()
1641 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1676 case TextureFormat::UNSIGNED_INT_16_8_8: in setPixDepth()
1677 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixDepth()
1681 case TextureFormat::UNSIGNED_INT_24_8: in setPixDepth()
1682 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS); in setPixDepth()
1686 case TextureFormat::UNSIGNED_INT_24_8_REV: in setPixDepth()
1687 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS); in setPixDepth()
1691 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in setPixDepth()
1692 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixDepth()
1697 DE_ASSERT(m_format.order == TextureFormat::D); // no other combined depth stencil types in setPixDepth()
1713 case TextureFormat::UNSIGNED_INT_16_8_8: in setPixStencil()
1714 case TextureFormat::UNSIGNED_INT_24_8: in setPixStencil()
1715 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixStencil()
1719 case TextureFormat::UNSIGNED_INT_24_8_REV: in setPixStencil()
1720 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixStencil()
1724 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in setPixStencil()
1725 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixStencil()
1730 DE_ASSERT(m_format.order == TextureFormat::S); // no other combined depth stencil types in setPixStencil()
1819 static bool isFixedPointDepthTextureFormat (const tcu::TextureFormat& format) in isFixedPointDepthTextureFormat()
1821 DE_ASSERT(format.order == TextureFormat::D || format.order == TextureFormat::R); in isFixedPointDepthTextureFormat()
1838 const TextureFormat& format = access.getFormat(); in lookup()
1842 if (format.type == TextureFormat::UNORM_INT8 && format.order == TextureFormat::sRGB) in lookup()
1844 else if (format.type == TextureFormat::UNORM_INT8 && format.order == TextureFormat::sRGBA) in lookup()
1856 static inline Vec4 lookupBorder (const tcu::TextureFormat& format, const tcu::Sampler& sampler) in lookupBorder()
2451 TextureLevel::TextureLevel (const TextureFormat& format) in TextureLevel()
2457 TextureLevel::TextureLevel (const TextureFormat& format, int width, int height, int depth) in TextureLevel()
2468 void TextureLevel::setStorage (const TextureFormat& format, int width, int height, int depth) in setStorage()
2832 DE_ASSERT(src.getFormat().order == TextureFormat::D || src.getFormat().order == TextureFormat::DS); in gatherArray2DOffsetsCompare()
3577 TextureLevelPyramid::TextureLevelPyramid (const TextureFormat& format, int numLevels) in TextureLevelPyramid()
3650 Texture1D::Texture1D (const TextureFormat& format, int width) in Texture1D()
3692 Texture2D::Texture2D (const TextureFormat& format, int width, int height, bool es2) in Texture2D()
3701 Texture2D::Texture2D (const TextureFormat& format, int width, int height, int mipmaps) in Texture2D()
3825 …SSERT(m_levels[0][0].getFormat().order == TextureFormat::D || m_levels[0][0].getFormat().order == … in gatherCompare()
3842 TextureCube::TextureCube (const TextureFormat& format, int size, bool es2) in TextureCube()
4028 Texture1DArray::Texture1DArray (const TextureFormat& format, int width, int numLayers) in Texture1DArray()
4073 Texture2DArray::Texture2DArray (const TextureFormat& format, int width, int height, int numLayers) in Texture2DArray()
4132 Texture3D::Texture3D (const TextureFormat& format, int width, int height, int depth) in Texture3D()
4226 TextureCubeArray::TextureCubeArray (const TextureFormat& format, int size, int depth) in TextureCubeArray()
4273 std::ostream& operator<< (std::ostream& str, TextureFormat::ChannelOrder order) in operator <<()
4303 return str << de::getSizedArrayElement<TextureFormat::CHANNELORDER_LAST>(orderStrings, order); in operator <<()
4306 std::ostream& operator<< (std::ostream& str, TextureFormat::ChannelType type) in operator <<()
4308 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in operator <<()
4362 return str << de::getSizedArrayElement<TextureFormat::CHANNELTYPE_LAST>(typeStrings, type); in operator <<()
4380 std::ostream& operator<< (std::ostream& str, TextureFormat format) in operator <<()