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()
593 bool isValid (TextureFormat format) in isValid()
599 case TextureFormat::SNORM_INT8: in isValid()
600 case TextureFormat::SNORM_INT16: in isValid()
601 case TextureFormat::SNORM_INT32: in isValid()
604 case TextureFormat::UNORM_INT8: in isValid()
605 case TextureFormat::UNORM_INT16: in isValid()
606 case TextureFormat::UNORM_INT24: in isValid()
607 case TextureFormat::UNORM_INT32: in isValid()
608 return isColor || format.order == TextureFormat::D; in isValid()
610 case TextureFormat::UNORM_BYTE_44: in isValid()
611 case TextureFormat::UNSIGNED_BYTE_44: in isValid()
612 return format.order == TextureFormat::RG; in isValid()
614 case TextureFormat::UNORM_SHORT_565: in isValid()
615 case TextureFormat::UNORM_SHORT_555: in isValid()
616 case TextureFormat::UNSIGNED_SHORT_565: in isValid()
617 return format.order == TextureFormat::RGB || format.order == TextureFormat::BGR; in isValid()
619 case TextureFormat::UNORM_SHORT_4444: in isValid()
620 case TextureFormat::UNORM_SHORT_5551: in isValid()
621 case TextureFormat::UNSIGNED_SHORT_4444: in isValid()
622 case TextureFormat::UNSIGNED_SHORT_5551: in isValid()
623 return format.order == TextureFormat::RGBA || format.order == TextureFormat::BGRA in isValid()
624 || format.order == TextureFormat::ARGB || format.order == TextureFormat::ABGR; in isValid()
626 case TextureFormat::UNORM_SHORT_1555: in isValid()
627 return format.order == TextureFormat::ARGB; in isValid()
629 case TextureFormat::UNORM_INT_101010: in isValid()
630 return format.order == TextureFormat::RGB; in isValid()
632 case TextureFormat::SNORM_INT_1010102_REV: in isValid()
633 case TextureFormat::UNORM_INT_1010102_REV: in isValid()
634 case TextureFormat::SIGNED_INT_1010102_REV: in isValid()
635 case TextureFormat::UNSIGNED_INT_1010102_REV: in isValid()
636 case TextureFormat::USCALED_INT_1010102_REV: in isValid()
637 case TextureFormat::SSCALED_INT_1010102_REV: in isValid()
638 return format.order == TextureFormat::RGBA || format.order == TextureFormat::BGRA; in isValid()
640 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: in isValid()
641 case TextureFormat::UNSIGNED_INT_999_E5_REV: in isValid()
642 return format.order == TextureFormat::RGB; in isValid()
644 case TextureFormat::UNSIGNED_INT_16_8_8: in isValid()
645 return format.order == TextureFormat::DS; in isValid()
647 case TextureFormat::UNSIGNED_INT_24_8: in isValid()
648 case TextureFormat::UNSIGNED_INT_24_8_REV: in isValid()
649 return format.order == TextureFormat::D || format.order == TextureFormat::DS; in isValid()
651 case TextureFormat::SIGNED_INT8: in isValid()
652 case TextureFormat::SIGNED_INT16: in isValid()
653 case TextureFormat::SIGNED_INT32: in isValid()
654 case TextureFormat::SSCALED_INT8: in isValid()
655 case TextureFormat::SSCALED_INT16: in isValid()
656 case TextureFormat::SIGNED_INT64: in isValid()
659 case TextureFormat::UNSIGNED_INT8: in isValid()
660 case TextureFormat::UNSIGNED_INT16: in isValid()
661 case TextureFormat::UNSIGNED_INT24: in isValid()
662 case TextureFormat::UNSIGNED_INT32: in isValid()
663 case TextureFormat::USCALED_INT8: in isValid()
664 case TextureFormat::USCALED_INT16: in isValid()
665 case TextureFormat::UNSIGNED_INT64: in isValid()
666 return isColor || format.order == TextureFormat::S; in isValid()
668 case TextureFormat::HALF_FLOAT: in isValid()
669 case TextureFormat::FLOAT: in isValid()
670 case TextureFormat::FLOAT64: in isValid()
671 return isColor || format.order == TextureFormat::D; in isValid()
673 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in isValid()
674 return format.order == TextureFormat::DS; in isValid()
676 case TextureFormat::UNORM_SHORT_10: in isValid()
677 case TextureFormat::UNORM_SHORT_12: in isValid()
685 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in isValid()
688 int getNumUsedChannels (TextureFormat::ChannelOrder order) in getNumUsedChannels()
691 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in getNumUsedChannels()
695 case TextureFormat::R: return 1; in getNumUsedChannels()
696 case TextureFormat::A: return 1; in getNumUsedChannels()
697 case TextureFormat::I: return 1; in getNumUsedChannels()
698 case TextureFormat::L: return 1; in getNumUsedChannels()
699 case TextureFormat::LA: return 2; in getNumUsedChannels()
700 case TextureFormat::RG: return 2; in getNumUsedChannels()
701 case TextureFormat::RA: return 2; in getNumUsedChannels()
702 case TextureFormat::RGB: return 3; in getNumUsedChannels()
703 case TextureFormat::RGBA: return 4; in getNumUsedChannels()
704 case TextureFormat::ARGB: return 4; in getNumUsedChannels()
705 case TextureFormat::ABGR: return 4; in getNumUsedChannels()
706 case TextureFormat::BGR: return 3; in getNumUsedChannels()
707 case TextureFormat::BGRA: return 4; in getNumUsedChannels()
708 case TextureFormat::sR: return 1; in getNumUsedChannels()
709 case TextureFormat::sRG: return 2; in getNumUsedChannels()
710 case TextureFormat::sRGB: return 3; in getNumUsedChannels()
711 case TextureFormat::sRGBA: return 4; in getNumUsedChannels()
712 case TextureFormat::sBGR: return 3; in getNumUsedChannels()
713 case TextureFormat::sBGRA: return 4; in getNumUsedChannels()
714 case TextureFormat::D: return 1; in getNumUsedChannels()
715 case TextureFormat::S: return 1; in getNumUsedChannels()
716 case TextureFormat::DS: return 2; in getNumUsedChannels()
723 int getChannelSize (TextureFormat::ChannelType type) in getChannelSize()
726 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in getChannelSize()
730 case TextureFormat::SNORM_INT8: return 1; in getChannelSize()
731 case TextureFormat::SNORM_INT16: return 2; in getChannelSize()
732 case TextureFormat::SNORM_INT32: return 4; in getChannelSize()
733 case TextureFormat::UNORM_INT8: return 1; in getChannelSize()
734 case TextureFormat::UNORM_INT16: return 2; in getChannelSize()
735 case TextureFormat::UNORM_INT24: return 3; in getChannelSize()
736 case TextureFormat::UNORM_INT32: return 4; in getChannelSize()
737 case TextureFormat::SIGNED_INT8: return 1; in getChannelSize()
738 case TextureFormat::SIGNED_INT16: return 2; in getChannelSize()
739 case TextureFormat::SIGNED_INT32: return 4; in getChannelSize()
740 case TextureFormat::SIGNED_INT64: return 8; in getChannelSize()
741 case TextureFormat::UNSIGNED_INT8: return 1; in getChannelSize()
742 case TextureFormat::UNSIGNED_INT16: return 2; in getChannelSize()
743 case TextureFormat::UNSIGNED_INT24: return 3; in getChannelSize()
744 case TextureFormat::UNSIGNED_INT32: return 4; in getChannelSize()
745 case TextureFormat::UNSIGNED_INT64: return 8; in getChannelSize()
746 case TextureFormat::HALF_FLOAT: return 2; in getChannelSize()
747 case TextureFormat::FLOAT: return 4; in getChannelSize()
748 case TextureFormat::FLOAT64: return 8; in getChannelSize()
749 case TextureFormat::UNORM_SHORT_10: return 2; in getChannelSize()
750 case TextureFormat::UNORM_SHORT_12: return 2; in getChannelSize()
751 case TextureFormat::USCALED_INT8: return 1; in getChannelSize()
752 case TextureFormat::USCALED_INT16: return 2; in getChannelSize()
753 case TextureFormat::SSCALED_INT8: return 1; in getChannelSize()
754 case TextureFormat::SSCALED_INT16: return 2; in getChannelSize()
762 int getPixelSize (TextureFormat format) in getPixelSize()
764 const TextureFormat::ChannelOrder order = format.order; in getPixelSize()
765 const TextureFormat::ChannelType type = format.type; in getPixelSize()
770 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in getPixelSize()
774 case TextureFormat::UNORM_BYTE_44: in getPixelSize()
775 case TextureFormat::UNSIGNED_BYTE_44: in getPixelSize()
778 case TextureFormat::UNORM_SHORT_565: in getPixelSize()
779 case TextureFormat::UNORM_SHORT_555: in getPixelSize()
780 case TextureFormat::UNORM_SHORT_4444: in getPixelSize()
781 case TextureFormat::UNORM_SHORT_5551: in getPixelSize()
782 case TextureFormat::UNORM_SHORT_1555: in getPixelSize()
783 case TextureFormat::UNSIGNED_SHORT_565: in getPixelSize()
784 case TextureFormat::UNSIGNED_SHORT_4444: in getPixelSize()
785 case TextureFormat::UNSIGNED_SHORT_5551: in getPixelSize()
788 case TextureFormat::UNORM_INT_101010: in getPixelSize()
789 case TextureFormat::UNSIGNED_INT_999_E5_REV: in getPixelSize()
790 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: in getPixelSize()
791 case TextureFormat::SNORM_INT_1010102_REV: in getPixelSize()
792 case TextureFormat::UNORM_INT_1010102_REV: in getPixelSize()
793 case TextureFormat::SIGNED_INT_1010102_REV: in getPixelSize()
794 case TextureFormat::UNSIGNED_INT_1010102_REV: in getPixelSize()
795 case TextureFormat::UNSIGNED_INT_24_8: in getPixelSize()
796 case TextureFormat::UNSIGNED_INT_24_8_REV: in getPixelSize()
797 case TextureFormat::UNSIGNED_INT_16_8_8: in getPixelSize()
798 case TextureFormat::USCALED_INT_1010102_REV: in getPixelSize()
799 case TextureFormat::SSCALED_INT_1010102_REV: in getPixelSize()
802 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in getPixelSize()
810 int TextureFormat::getPixelSize (void) const in getPixelSize()
815 const TextureSwizzle& getChannelReadSwizzle (TextureFormat::ChannelOrder order) in getChannelReadSwizzle()
818 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in getChannelReadSwizzle()
839 case TextureFormat::R: return R; in getChannelReadSwizzle()
840 case TextureFormat::A: return A; in getChannelReadSwizzle()
841 case TextureFormat::I: return I; in getChannelReadSwizzle()
842 case TextureFormat::L: return L; in getChannelReadSwizzle()
843 case TextureFormat::LA: return LA; in getChannelReadSwizzle()
844 case TextureFormat::RG: return RG; in getChannelReadSwizzle()
845 case TextureFormat::RA: return RA; in getChannelReadSwizzle()
846 case TextureFormat::RGB: return RGB; in getChannelReadSwizzle()
847 case TextureFormat::RGBA: return RGBA; in getChannelReadSwizzle()
848 case TextureFormat::ARGB: return ARGB; in getChannelReadSwizzle()
849 case TextureFormat::ABGR: return ABGR; in getChannelReadSwizzle()
850 case TextureFormat::BGR: return BGR; in getChannelReadSwizzle()
851 case TextureFormat::BGRA: return BGRA; in getChannelReadSwizzle()
852 case TextureFormat::sR: return R; in getChannelReadSwizzle()
853 case TextureFormat::sRG: return RG; in getChannelReadSwizzle()
854 case TextureFormat::sRGB: return RGB; in getChannelReadSwizzle()
855 case TextureFormat::sRGBA: return RGBA; in getChannelReadSwizzle()
856 case TextureFormat::sBGR: return BGR; in getChannelReadSwizzle()
857 case TextureFormat::sBGRA: return BGRA; in getChannelReadSwizzle()
858 case TextureFormat::D: return D; in getChannelReadSwizzle()
859 case TextureFormat::S: return S; in getChannelReadSwizzle()
861 case TextureFormat::DS: in getChannelReadSwizzle()
871 const TextureSwizzle& getChannelWriteSwizzle (TextureFormat::ChannelOrder order) in getChannelWriteSwizzle()
874 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 22); in getChannelWriteSwizzle()
895 case TextureFormat::R: return R; in getChannelWriteSwizzle()
896 case TextureFormat::A: return A; in getChannelWriteSwizzle()
897 case TextureFormat::I: return I; in getChannelWriteSwizzle()
898 case TextureFormat::L: return L; in getChannelWriteSwizzle()
899 case TextureFormat::LA: return LA; in getChannelWriteSwizzle()
900 case TextureFormat::RG: return RG; in getChannelWriteSwizzle()
901 case TextureFormat::RA: return RA; in getChannelWriteSwizzle()
902 case TextureFormat::RGB: return RGB; in getChannelWriteSwizzle()
903 case TextureFormat::RGBA: return RGBA; in getChannelWriteSwizzle()
904 case TextureFormat::ARGB: return ARGB; in getChannelWriteSwizzle()
905 case TextureFormat::ABGR: return ABGR; in getChannelWriteSwizzle()
906 case TextureFormat::BGR: return BGR; in getChannelWriteSwizzle()
907 case TextureFormat::BGRA: return BGRA; in getChannelWriteSwizzle()
908 case TextureFormat::sR: return R; in getChannelWriteSwizzle()
909 case TextureFormat::sRG: return RG; in getChannelWriteSwizzle()
910 case TextureFormat::sRGB: return RGB; in getChannelWriteSwizzle()
911 case TextureFormat::sRGBA: return RGBA; in getChannelWriteSwizzle()
912 case TextureFormat::sBGR: return BGR; in getChannelWriteSwizzle()
913 case TextureFormat::sBGRA: return BGRA; in getChannelWriteSwizzle()
914 case TextureFormat::D: return D; in getChannelWriteSwizzle()
915 case TextureFormat::S: return S; in getChannelWriteSwizzle()
917 case TextureFormat::DS: in getChannelWriteSwizzle()
927 IVec3 calculatePackedPitch (const TextureFormat& format, const IVec3& size) in calculatePackedPitch()
944 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, int width, int height,… in ConstPixelBufferAccess()
954 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, const IVec3& size, con… in ConstPixelBufferAccess()
964 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, int width, int height,… in ConstPixelBufferAccess()
974 ConstPixelBufferAccess::ConstPixelBufferAccess (const TextureFormat& format, const IVec3& size, con… in ConstPixelBufferAccess()
985 ConstPixelBufferAccess::ConstPixelBufferAccess(const TextureFormat& format, const IVec3& size, cons… in ConstPixelBufferAccess()
1005 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, int width, int height, int depth… in PixelBufferAccess()
1010 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, const IVec3& size, void* data) in PixelBufferAccess()
1015 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, int width, int height, int depth… in PixelBufferAccess()
1020 PixelBufferAccess::PixelBufferAccess (const TextureFormat& format, const IVec3& size, const IVec3& … in PixelBufferAccess()
1025 PixelBufferAccess::PixelBufferAccess(const TextureFormat& format, const IVec3& size, const IVec3& p… in PixelBufferAccess()
1038 Vector<T, 4> swizzleGe (const Vector<T, 4>& v, TextureFormat::ChannelOrder src, TextureFormat::Chan… in swizzleGe()
1044 if ((src == TextureFormat::RGBA && dst == TextureFormat::ARGB) || in swizzleGe()
1045 (src == TextureFormat::BGRA && dst == TextureFormat::ABGR)) in swizzleGe()
1048 if ((src == TextureFormat::ARGB && dst == TextureFormat::RGBA) || in swizzleGe()
1049 (src == TextureFormat::ABGR && dst == TextureFormat::BGRA)) in swizzleGe()
1052 if ((src == TextureFormat::BGRA && dst == TextureFormat::ARGB) || in swizzleGe()
1053 (src == TextureFormat::ABGR && dst == TextureFormat::RGBA) || in swizzleGe()
1054 (src == TextureFormat::RGBA && dst == TextureFormat::ABGR) || in swizzleGe()
1055 (src == TextureFormat::ARGB && dst == TextureFormat::BGRA)) in swizzleGe()
1058 if ((src == TextureFormat::RGB && dst == TextureFormat::BGR) || in swizzleGe()
1059 (src == TextureFormat::BGR && dst == TextureFormat::RGB) || in swizzleGe()
1060 (src == TextureFormat::RGBA && dst == TextureFormat::BGRA) || in swizzleGe()
1061 (src == TextureFormat::BGRA && dst == TextureFormat::RGBA)) in swizzleGe()
1075 DE_ASSERT(m_format.order != TextureFormat::DS); // combined formats cannot be accessed directly in getPixel()
1080 if (m_format.type == TextureFormat::UNORM_INT8) in getPixel()
1082 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA) in getPixel()
1084 else if (m_format.order == TextureFormat::RGB || m_format.order == TextureFormat::sRGB) in getPixel()
1100 case TextureFormat::UNORM_BYTE_44: return Vec4(UN8 (4, 4), UN8 ( 0, 4), 0.0f, 1.0f); in getPixel()
1101 …case TextureFormat::UNSIGNED_BYTE_44: return UVec4(UI8 (4, 4), UI8 ( 0, 4), 0u, 1u).cast<f… in getPixel()
1102 …case TextureFormat::UNORM_SHORT_565: return swizzleGe( Vec4(UN16(11, 5), UN16( 5, 6), UN16( 0,… in getPixel()
1103 …case TextureFormat::UNSIGNED_SHORT_565: return swizzleGe(UVec4(UI16(11, 5), UI16( 5, 6), UI16(… in getPixel()
1104 …case TextureFormat::UNORM_SHORT_555: return swizzleGe( Vec4(UN16(10, 5), UN16( 5, 5), UN16( 0,… in getPixel()
1105 …case TextureFormat::UNORM_SHORT_4444: return swizzleGe( Vec4(UN16(12, 4), UN16( 8, 4), UN16( 4… in getPixel()
1106 …ase TextureFormat::UNSIGNED_SHORT_4444: return swizzleGe(UVec4(UI16(12, 4), UI16( 8, 4), UI16( … in getPixel()
1107 …case TextureFormat::UNORM_SHORT_5551: return swizzleGe( Vec4(UN16(11, 5), UN16( 6, 5), UN16( 1… in getPixel()
1108 …ase TextureFormat::UNSIGNED_SHORT_5551: return swizzleGe(UVec4(UI16(11, 5), UI16( 6, 5), UI16( … in getPixel()
1109 …case TextureFormat::UNORM_INT_101010: return Vec4(UN32(22, 10), UN32(12, 10), UN32( 2, 10), … in getPixel()
1110 …se TextureFormat::UNORM_INT_1010102_REV: return swizzleGe( Vec4(UN32( 0, 10), UN32(10, 10), UN32(… in getPixel()
1111 …se TextureFormat::SNORM_INT_1010102_REV: return swizzleGe( Vec4(SN32( 0, 10), SN32(10, 10), SN32(… in getPixel()
1112 case TextureFormat::USCALED_INT_1010102_REV: in getPixel()
1113 …e TextureFormat::UNSIGNED_INT_1010102_REV: return swizzleGe( UVec4(UI32(0, 10), UI32(10, 10), UI32… in getPixel()
1114 case TextureFormat::SSCALED_INT_1010102_REV: in getPixel()
1115 …e TextureFormat::SIGNED_INT_1010102_REV: return swizzleGe( UVec4(SI32(0, 10), SI32(10, 10), SI32(… in getPixel()
1116 case TextureFormat::UNSIGNED_INT_999_E5_REV: return unpackRGB999E5(*((const deUint32*)pixelPtr)); in getPixel()
1118 case TextureFormat::UNORM_SHORT_1555: in getPixel()
1119 DE_ASSERT(m_format.order == TextureFormat::ARGB); in getPixel()
1122 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: in getPixel()
1171 static tcu::Vector<T, 4> getPixelIntGeneric (const deUint8* pixelPtr, const tcu::TextureFormat& for… in getPixelIntGeneric()
1212 DE_ASSERT(m_format.order != TextureFormat::DS); // combined formats cannot be accessed directly in getPixelInt()
1217 if (m_format.type == TextureFormat::UNORM_INT8) in getPixelInt()
1219 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA) in getPixelInt()
1221 else if (m_format.order == TextureFormat::RGB || m_format.order == TextureFormat::sRGB) in getPixelInt()
1232 case TextureFormat::UNSIGNED_BYTE_44: // Fall-through in getPixelInt()
1233 …case TextureFormat::UNORM_BYTE_44: return UVec4(U8 ( 4, 4), U8 ( 0, 4), 0u, 1u).cast<int>(… in getPixelInt()
1234 case TextureFormat::UNSIGNED_SHORT_565: // Fall-through in getPixelInt()
1235 …case TextureFormat::UNORM_SHORT_565: return swizzleGe(UVec4(U16(11, 5), U16( 5, 6), U16( 0, 5… in getPixelInt()
1236 …case TextureFormat::UNORM_SHORT_555: return swizzleGe(UVec4(U16(10, 5), U16( 5, 5), U16( 0, 5… in getPixelInt()
1237 case TextureFormat::UNSIGNED_SHORT_4444: // Fall-through in getPixelInt()
1238 … TextureFormat::UNORM_SHORT_4444: return swizzleGe(UVec4(U16(12, 4), U16( 8, 4), U16( 4, 4), … in getPixelInt()
1239 case TextureFormat::UNSIGNED_SHORT_5551: // Fall-through in getPixelInt()
1240 … TextureFormat::UNORM_SHORT_5551: return swizzleGe(UVec4(U16(11, 5), U16( 6, 5), U16( 1, 5), … in getPixelInt()
1241 …case TextureFormat::UNORM_INT_101010: return UVec4(U32(22, 10), U32(12, 10), U32( 2, 10), 1).… in getPixelInt()
1242 case TextureFormat::UNORM_INT_1010102_REV: // Fall-through in getPixelInt()
1243 case TextureFormat::USCALED_INT_1010102_REV: // Fall-through in getPixelInt()
1244 …ase TextureFormat::UNSIGNED_INT_1010102_REV: return swizzleGe(UVec4(U32( 0, 10), U32(10, 10), U32(… in getPixelInt()
1245 case TextureFormat::SNORM_INT_1010102_REV: // Fall-through in getPixelInt()
1246 case TextureFormat::SSCALED_INT_1010102_REV: // Fall-through in getPixelInt()
1247 …ase TextureFormat::SIGNED_INT_1010102_REV: return swizzleGe(IVec4(S32( 0, 10), S32(10, 10), S32(2… in getPixelInt()
1249 case TextureFormat::UNORM_SHORT_1555: in getPixelInt()
1250 DE_ASSERT(m_format.order == TextureFormat::ARGB); in getPixelInt()
1269 if (m_format.type == TextureFormat::UNORM_INT8 && in getPixelInt64()
1270 (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA || in getPixelInt64()
1271 m_format.order == TextureFormat::RGB || m_format.order == TextureFormat::sRGB)) in getPixelInt64()
1278 case TextureFormat::UNSIGNED_BYTE_44: in getPixelInt64()
1279 case TextureFormat::UNORM_BYTE_44: in getPixelInt64()
1280 case TextureFormat::UNSIGNED_SHORT_565: in getPixelInt64()
1281 case TextureFormat::UNORM_SHORT_565: in getPixelInt64()
1282 case TextureFormat::UNORM_SHORT_555: in getPixelInt64()
1283 case TextureFormat::UNSIGNED_SHORT_4444: in getPixelInt64()
1284 case TextureFormat::UNORM_SHORT_4444: in getPixelInt64()
1285 case TextureFormat::UNSIGNED_SHORT_5551: in getPixelInt64()
1286 case TextureFormat::UNORM_SHORT_5551: in getPixelInt64()
1287 case TextureFormat::UNORM_INT_101010: in getPixelInt64()
1288 case TextureFormat::UNORM_INT_1010102_REV: in getPixelInt64()
1289 case TextureFormat::USCALED_INT_1010102_REV: in getPixelInt64()
1290 case TextureFormat::UNSIGNED_INT_1010102_REV: in getPixelInt64()
1291 case TextureFormat::SNORM_INT_1010102_REV: in getPixelInt64()
1292 case TextureFormat::SSCALED_INT_1010102_REV: in getPixelInt64()
1293 case TextureFormat::SIGNED_INT_1010102_REV: in getPixelInt64()
1294 case TextureFormat::UNORM_SHORT_1555: in getPixelInt64()
1346 case TextureFormat::UNSIGNED_INT_16_8_8: in getPixDepth()
1347 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixDepth()
1350 case TextureFormat::UNSIGNED_INT_24_8: in getPixDepth()
1351 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS); in getPixDepth()
1354 case TextureFormat::UNSIGNED_INT_24_8_REV: in getPixDepth()
1355 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS); in getPixDepth()
1358 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in getPixDepth()
1359 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixDepth()
1363 DE_ASSERT(m_format.order == TextureFormat::D); // no other combined depth stencil types in getPixDepth()
1378 case TextureFormat::UNSIGNED_INT_24_8_REV: in getPixStencil()
1379 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixStencil()
1382 case TextureFormat::UNSIGNED_INT_16_8_8: in getPixStencil()
1383 case TextureFormat::UNSIGNED_INT_24_8: in getPixStencil()
1384 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixStencil()
1387 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in getPixStencil()
1388 DE_ASSERT(m_format.order == TextureFormat::DS); in getPixStencil()
1393 DE_ASSERT(m_format.order == TextureFormat::S); // no other combined depth stencil types in getPixStencil()
1405 DE_ASSERT(m_format.order != TextureFormat::DS); // combined formats cannot be accessed directly in setPixel()
1410 if (m_format.type == TextureFormat::UNORM_INT8) in setPixel()
1412 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA) in setPixel()
1417 else if (m_format.order == TextureFormat::RGB || m_format.order == TextureFormat::sRGB) in setPixel()
1431 …case TextureFormat::UNORM_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8)(PN(color[0], 4, 4) | PN(col… in setPixel()
1432 …case TextureFormat::UNSIGNED_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8)(PU((deUint32)color[0], 4,… in setPixel()
1433 …case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PN(color[0], 22, 10) | PN(color[1],… in setPixel()
1435 case TextureFormat::UNORM_SHORT_565: in setPixel()
1437 const Vec4 swizzled = swizzleGe(color, TextureFormat::RGB, m_format.order); in setPixel()
1442 case TextureFormat::UNSIGNED_SHORT_565: in setPixel()
1444 const UVec4 swizzled = swizzleGe(color.cast<deUint32>(), TextureFormat::RGB, m_format.order); in setPixel()
1449 case TextureFormat::UNORM_SHORT_555: in setPixel()
1451 const Vec4 swizzled = swizzleGe(color, TextureFormat::RGB, m_format.order); in setPixel()
1456 case TextureFormat::UNORM_SHORT_4444: in setPixel()
1458 const Vec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1463 case TextureFormat::UNSIGNED_SHORT_4444: in setPixel()
1465 const UVec4 swizzled = swizzleGe(color.cast<deUint32>(), TextureFormat::RGBA, m_format.order); in setPixel()
1470 case TextureFormat::UNORM_SHORT_5551: in setPixel()
1472 const Vec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1477 case TextureFormat::UNORM_SHORT_1555: in setPixel()
1484 case TextureFormat::UNSIGNED_SHORT_5551: in setPixel()
1486 const UVec4 swizzled = swizzleGe(color.cast<deUint32>(), TextureFormat::RGBA, m_format.order); in setPixel()
1491 case TextureFormat::UNORM_INT_1010102_REV: in setPixel()
1493 const Vec4 u = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1498 case TextureFormat::SNORM_INT_1010102_REV: in setPixel()
1500 const Vec4 u = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1505 case TextureFormat::UNSIGNED_INT_1010102_REV: in setPixel()
1506 case TextureFormat::USCALED_INT_1010102_REV: in setPixel()
1508 const UVec4 u = swizzleGe(color.cast<deUint32>(), TextureFormat::RGBA, m_format.order); in setPixel()
1513 case TextureFormat::SIGNED_INT_1010102_REV: in setPixel()
1514 case TextureFormat::SSCALED_INT_1010102_REV: in setPixel()
1516 const IVec4 u = swizzleGe(color.cast<deInt32>(), TextureFormat::RGBA, m_format.order); in setPixel()
1521 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: in setPixel()
1525 case TextureFormat::UNSIGNED_INT_999_E5_REV: in setPixel()
1557 DE_ASSERT(m_format.order != TextureFormat::DS); // combined formats cannot be accessed directly in setPixel()
1562 if (m_format.type == TextureFormat::UNORM_INT8) in setPixel()
1564 if (m_format.order == TextureFormat::RGBA || m_format.order == TextureFormat::sRGBA) in setPixel()
1569 else if (m_format.order == TextureFormat::RGB || m_format.order == TextureFormat::sRGB) in setPixel()
1581 case TextureFormat::UNSIGNED_BYTE_44: // Fall-through in setPixel()
1582 …case TextureFormat::UNORM_BYTE_44: *((deUint8 *)pixelPtr) = (deUint8 )(PU(color[0], 4, 4) | PU(c… in setPixel()
1583 …case TextureFormat::UNORM_INT_101010: *((deUint32*)pixelPtr) = PU(color[0], 22, 10) | PU(color[1],… in setPixel()
1585 case TextureFormat::UNORM_SHORT_565: in setPixel()
1586 case TextureFormat::UNSIGNED_SHORT_565: in setPixel()
1588 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGB, m_format.order); in setPixel()
1593 case TextureFormat::UNORM_SHORT_555: in setPixel()
1595 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGB, m_format.order); in setPixel()
1600 case TextureFormat::UNORM_SHORT_4444: in setPixel()
1601 case TextureFormat::UNSIGNED_SHORT_4444: in setPixel()
1603 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1608 case TextureFormat::UNORM_SHORT_5551: in setPixel()
1609 case TextureFormat::UNSIGNED_SHORT_5551: in setPixel()
1611 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1616 case TextureFormat::UNORM_SHORT_1555: in setPixel()
1623 case TextureFormat::UNORM_INT_1010102_REV: in setPixel()
1624 case TextureFormat::UNSIGNED_INT_1010102_REV: in setPixel()
1625 case TextureFormat::USCALED_INT_1010102_REV: in setPixel()
1627 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1632 case TextureFormat::SNORM_INT_1010102_REV: in setPixel()
1633 case TextureFormat::SIGNED_INT_1010102_REV: in setPixel()
1634 case TextureFormat::SSCALED_INT_1010102_REV: in setPixel()
1636 const IVec4 swizzled = swizzleGe(color, TextureFormat::RGBA, m_format.order); in setPixel()
1671 case TextureFormat::UNSIGNED_INT_16_8_8: in setPixDepth()
1672 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixDepth()
1676 case TextureFormat::UNSIGNED_INT_24_8: in setPixDepth()
1677 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS); in setPixDepth()
1681 case TextureFormat::UNSIGNED_INT_24_8_REV: in setPixDepth()
1682 DE_ASSERT(m_format.order == TextureFormat::D || m_format.order == TextureFormat::DS); in setPixDepth()
1686 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in setPixDepth()
1687 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixDepth()
1692 DE_ASSERT(m_format.order == TextureFormat::D); // no other combined depth stencil types in setPixDepth()
1708 case TextureFormat::UNSIGNED_INT_16_8_8: in setPixStencil()
1709 case TextureFormat::UNSIGNED_INT_24_8: in setPixStencil()
1710 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixStencil()
1714 case TextureFormat::UNSIGNED_INT_24_8_REV: in setPixStencil()
1715 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixStencil()
1719 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in setPixStencil()
1720 DE_ASSERT(m_format.order == TextureFormat::DS); in setPixStencil()
1725 DE_ASSERT(m_format.order == TextureFormat::S); // no other combined depth stencil types in setPixStencil()
1814 static bool isFixedPointDepthTextureFormat (const tcu::TextureFormat& format) in isFixedPointDepthTextureFormat()
1816 DE_ASSERT(format.order == TextureFormat::D || format.order == TextureFormat::R); in isFixedPointDepthTextureFormat()
1833 const TextureFormat& format = access.getFormat(); in lookup()
1837 if (format.type == TextureFormat::UNORM_INT8 && format.order == TextureFormat::sRGB) in lookup()
1839 else if (format.type == TextureFormat::UNORM_INT8 && format.order == TextureFormat::sRGBA) in lookup()
1851 static inline Vec4 lookupBorder (const tcu::TextureFormat& format, const tcu::Sampler& sampler) in lookupBorder()
2446 TextureLevel::TextureLevel (const TextureFormat& format) in TextureLevel()
2452 TextureLevel::TextureLevel (const TextureFormat& format, int width, int height, int depth) in TextureLevel()
2463 void TextureLevel::setStorage (const TextureFormat& format, int width, int height, int depth) in setStorage()
2762 DE_ASSERT(src.getFormat().order == TextureFormat::D || src.getFormat().order == TextureFormat::DS); in gatherArray2DOffsetsCompare()
3459 TextureLevelPyramid::TextureLevelPyramid (const TextureFormat& format, int numLevels) in TextureLevelPyramid()
3532 Texture1D::Texture1D (const TextureFormat& format, int width) in Texture1D()
3574 Texture2D::Texture2D (const TextureFormat& format, int width, int height, bool es2) in Texture2D()
3583 Texture2D::Texture2D (const TextureFormat& format, int width, int height, int mipmaps) in Texture2D()
3704 …SSERT(m_levels[0][0].getFormat().order == TextureFormat::D || m_levels[0][0].getFormat().order == … in gatherCompare()
3721 TextureCube::TextureCube (const TextureFormat& format, int size, bool es2) in TextureCube()
3907 Texture1DArray::Texture1DArray (const TextureFormat& format, int width, int numLayers) in Texture1DArray()
3952 Texture2DArray::Texture2DArray (const TextureFormat& format, int width, int height, int numLayers) in Texture2DArray()
4009 Texture3D::Texture3D (const TextureFormat& format, int width, int height, int depth) in Texture3D()
4103 TextureCubeArray::TextureCubeArray (const TextureFormat& format, int size, int depth) in TextureCubeArray()
4150 std::ostream& operator<< (std::ostream& str, TextureFormat::ChannelOrder order) in operator <<()
4180 return str << de::getSizedArrayElement<TextureFormat::CHANNELORDER_LAST>(orderStrings, order); in operator <<()
4183 std::ostream& operator<< (std::ostream& str, TextureFormat::ChannelType type) in operator <<()
4185 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 48); in operator <<()
4239 return str << de::getSizedArrayElement<TextureFormat::CHANNELTYPE_LAST>(typeStrings, type); in operator <<()
4257 std::ostream& operator<< (std::ostream& str, TextureFormat format) in operator <<()