Lines Matching refs:IVec4

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()
487 return IVec4(0); in getFormatMinIntValue()
491 IVec4 getFormatMaxIntValue (const TextureFormat& format) in getFormatMaxIntValue()
499 return IVec4(511, 511, 511, 1); 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()
512 return IVec4(0); in getFormatMaxIntValue()
542 static IVec4 getChannelBitDepth (TextureFormat::ChannelType channelType) 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()
599 return IVec4(0); in getChannelBitDepth()
603 IVec4 getTextureFormatBitDepth (const TextureFormat& format) in getTextureFormatBitDepth()
605 const IVec4 chnBits = getChannelBitDepth(format.type); in getTextureFormatBitDepth()
611 const IVec4 chnSwz = IVec4((chnMask[0]) ? ((int)map[0]) : (0), in getTextureFormatBitDepth()
616 return select(chnBits.swizzle(chnSwz.x(), chnSwz.y(), chnSwz.z(), chnSwz.w()), IVec4(0), chnMask); in getTextureFormatBitDepth()
619 static IVec4 getChannelMantissaBitDepth (TextureFormat::ChannelType channelType) 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()
676 return IVec4(0); in getChannelMantissaBitDepth()
680 IVec4 getTextureFormatMantissaBitDepth (const TextureFormat& format) in getTextureFormatMantissaBitDepth()
682 const IVec4 chnBits = getChannelMantissaBitDepth(format.type); in getTextureFormatMantissaBitDepth()
688 const IVec4 chnSwz = IVec4((chnMask[0]) ? ((int)map[0]) : (0), in getTextureFormatMantissaBitDepth()
693 return select(chnBits.swizzle(chnSwz.x(), chnSwz.y(), chnSwz.z(), chnSwz.w()), IVec4(0), chnMask); in getTextureFormatMantissaBitDepth()
783 void clear (const PixelBufferAccess& access, const IVec4& color) in clear()
1691 static tcu::UVec4 getNBitUnsignedIntegerVec4MaxValue (const tcu::IVec4& numBits) in getNBitUnsignedIntegerVec4MaxValue()
1699 static tcu::IVec4 getNBitSignedIntegerVec4MaxValue (const tcu::IVec4& numBits) in getNBitSignedIntegerVec4MaxValue()
1701 return tcu::IVec4((numBits[0] > 0) ? (deIntMaxValue32(numBits[0])) : (0), in getNBitSignedIntegerVec4MaxValue()
1707 static tcu::IVec4 getNBitSignedIntegerVec4MinValue (const tcu::IVec4& numBits) in getNBitSignedIntegerVec4MinValue()
1709 return tcu::IVec4((numBits[0] > 0) ? (deIntMinValue32(numBits[0])) : (0), in getNBitSignedIntegerVec4MinValue()
1751 static tcu::IVec4 getTextureBorderColorInt (const TextureFormat& format, const Sampler& sampler) in getTextureBorderColorInt()
1755 const IVec4 channelBits = getChannelBitDepth(format.type); in getTextureBorderColorInt()
1756 const IVec4 valueMin = getNBitSignedIntegerVec4MinValue(channelBits); in getTextureBorderColorInt()
1757 const IVec4 valueMax = getNBitSignedIntegerVec4MaxValue(channelBits); in getTextureBorderColorInt()
1758 IVec4 result; in getTextureBorderColorInt()
1784 const IVec4 channelBits = getChannelBitDepth(format.type); in getTextureBorderColorUint()