• Home
  • Raw
  • Download

Lines Matching refs:IVec4

461 IVec4 getFormatMinIntValue (const TextureFormat& format)  in getFormatMinIntValue()
467 case TextureFormat::SIGNED_INT8: return IVec4(std::numeric_limits<deInt8>::min()); in getFormatMinIntValue()
468 case TextureFormat::SIGNED_INT16: return IVec4(std::numeric_limits<deInt16>::min()); in getFormatMinIntValue()
469 case TextureFormat::SIGNED_INT32: return IVec4(std::numeric_limits<deInt32>::min()); in getFormatMinIntValue()
473 return IVec4(0); in getFormatMinIntValue()
477 IVec4 getFormatMaxIntValue (const TextureFormat& format) in getFormatMaxIntValue()
483 return IVec4(511, 511, 511, 1); in getFormatMaxIntValue()
487 case TextureFormat::SIGNED_INT8: return IVec4(std::numeric_limits<deInt8>::max()); in getFormatMaxIntValue()
488 case TextureFormat::SIGNED_INT16: return IVec4(std::numeric_limits<deInt16>::max()); in getFormatMaxIntValue()
489 case TextureFormat::SIGNED_INT32: return IVec4(std::numeric_limits<deInt32>::max()); in getFormatMaxIntValue()
493 return IVec4(0); in getFormatMaxIntValue()
518 static IVec4 getChannelBitDepth (TextureFormat::ChannelType channelType) in getChannelBitDepth()
525 case TextureFormat::SNORM_INT8: return IVec4(8); in getChannelBitDepth()
526 case TextureFormat::SNORM_INT16: return IVec4(16); in getChannelBitDepth()
527 case TextureFormat::SNORM_INT32: return IVec4(32); in getChannelBitDepth()
528 case TextureFormat::UNORM_INT8: return IVec4(8); in getChannelBitDepth()
529 case TextureFormat::UNORM_INT16: return IVec4(16); in getChannelBitDepth()
530 case TextureFormat::UNORM_INT24: return IVec4(24); in getChannelBitDepth()
531 case TextureFormat::UNORM_INT32: return IVec4(32); in getChannelBitDepth()
532 case TextureFormat::UNORM_BYTE_44: return IVec4(4,4,0,0); in getChannelBitDepth()
533 case TextureFormat::UNORM_SHORT_565: return IVec4(5,6,5,0); in getChannelBitDepth()
534 case TextureFormat::UNORM_SHORT_4444: return IVec4(4); in getChannelBitDepth()
535 case TextureFormat::UNORM_SHORT_555: return IVec4(5,5,5,0); in getChannelBitDepth()
536 case TextureFormat::UNORM_SHORT_5551: return IVec4(5,5,5,1); in getChannelBitDepth()
537 case TextureFormat::UNORM_SHORT_1555: return IVec4(1,5,5,5); in getChannelBitDepth()
538 case TextureFormat::UNSIGNED_BYTE_44: return IVec4(4,4,0,0); in getChannelBitDepth()
539 case TextureFormat::UNSIGNED_SHORT_565: return IVec4(5,6,5,0); in getChannelBitDepth()
540 case TextureFormat::UNSIGNED_SHORT_4444: return IVec4(4); in getChannelBitDepth()
541 case TextureFormat::UNSIGNED_SHORT_5551: return IVec4(5,5,5,1); in getChannelBitDepth()
542 case TextureFormat::UNORM_INT_101010: return IVec4(10,10,10,0); in getChannelBitDepth()
543 case TextureFormat::SNORM_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
544 case TextureFormat::UNORM_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
545 case TextureFormat::SIGNED_INT8: return IVec4(8); in getChannelBitDepth()
546 case TextureFormat::SIGNED_INT16: return IVec4(16); in getChannelBitDepth()
547 case TextureFormat::SIGNED_INT32: return IVec4(32); in getChannelBitDepth()
548 case TextureFormat::UNSIGNED_INT8: return IVec4(8); in getChannelBitDepth()
549 case TextureFormat::UNSIGNED_INT16: return IVec4(16); in getChannelBitDepth()
550 case TextureFormat::UNSIGNED_INT24: return IVec4(24); in getChannelBitDepth()
551 case TextureFormat::UNSIGNED_INT32: return IVec4(32); in getChannelBitDepth()
552 case TextureFormat::SIGNED_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
553 case TextureFormat::UNSIGNED_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
554 case TextureFormat::UNSIGNED_INT_16_8_8: return IVec4(16,8,0,0); in getChannelBitDepth()
555 case TextureFormat::UNSIGNED_INT_24_8: return IVec4(24,8,0,0); in getChannelBitDepth()
556 case TextureFormat::UNSIGNED_INT_24_8_REV: return IVec4(24,8,0,0); in getChannelBitDepth()
557 case TextureFormat::HALF_FLOAT: return IVec4(16); in getChannelBitDepth()
558 case TextureFormat::FLOAT: return IVec4(32); in getChannelBitDepth()
559 case TextureFormat::FLOAT64: return IVec4(64); in getChannelBitDepth()
560 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return IVec4(11,11,10,0); in getChannelBitDepth()
561 case TextureFormat::UNSIGNED_INT_999_E5_REV: return IVec4(9,9,9,0); in getChannelBitDepth()
562 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return IVec4(32,8,0,0); in getChannelBitDepth()
563 case TextureFormat::UNORM_SHORT_10: return IVec4(10); in getChannelBitDepth()
564 case TextureFormat::UNORM_SHORT_12: return IVec4(12); in getChannelBitDepth()
567 return IVec4(0); in getChannelBitDepth()
571 IVec4 getTextureFormatBitDepth (const TextureFormat& format) in getTextureFormatBitDepth()
573 const IVec4 chnBits = getChannelBitDepth(format.type); in getTextureFormatBitDepth()
579 const IVec4 chnSwz = IVec4((chnMask[0]) ? ((int)map[0]) : (0), in getTextureFormatBitDepth()
584 return select(chnBits.swizzle(chnSwz.x(), chnSwz.y(), chnSwz.z(), chnSwz.w()), IVec4(0), chnMask); in getTextureFormatBitDepth()
587 static IVec4 getChannelMantissaBitDepth (TextureFormat::ChannelType channelType) in getChannelMantissaBitDepth()
631 case TextureFormat::HALF_FLOAT: return IVec4(10); in getChannelMantissaBitDepth()
632 case TextureFormat::FLOAT: return IVec4(23); in getChannelMantissaBitDepth()
633 case TextureFormat::FLOAT64: return IVec4(52); in getChannelMantissaBitDepth()
634 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return IVec4(6,6,5,0); in getChannelMantissaBitDepth()
635 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return IVec4(23,8,0,0); in getChannelMantissaBitDepth()
638 return IVec4(0); in getChannelMantissaBitDepth()
642 IVec4 getTextureFormatMantissaBitDepth (const TextureFormat& format) in getTextureFormatMantissaBitDepth()
644 const IVec4 chnBits = getChannelMantissaBitDepth(format.type); in getTextureFormatMantissaBitDepth()
650 const IVec4 chnSwz = IVec4((chnMask[0]) ? ((int)map[0]) : (0), in getTextureFormatMantissaBitDepth()
655 return select(chnBits.swizzle(chnSwz.x(), chnSwz.y(), chnSwz.z(), chnSwz.w()), IVec4(0), chnMask); in getTextureFormatMantissaBitDepth()
745 void clear (const PixelBufferAccess& access, const IVec4& color) in clear()
1573 static tcu::UVec4 getNBitUnsignedIntegerVec4MaxValue (const tcu::IVec4& numBits) in getNBitUnsignedIntegerVec4MaxValue()
1581 static tcu::IVec4 getNBitSignedIntegerVec4MaxValue (const tcu::IVec4& numBits) in getNBitSignedIntegerVec4MaxValue()
1583 return tcu::IVec4((numBits[0] > 0) ? (deIntMaxValue32(numBits[0])) : (0), in getNBitSignedIntegerVec4MaxValue()
1589 static tcu::IVec4 getNBitSignedIntegerVec4MinValue (const tcu::IVec4& numBits) in getNBitSignedIntegerVec4MinValue()
1591 return tcu::IVec4((numBits[0] > 0) ? (deIntMinValue32(numBits[0])) : (0), in getNBitSignedIntegerVec4MinValue()
1633 static tcu::IVec4 getTextureBorderColorInt (const TextureFormat& format, const Sampler& sampler) in getTextureBorderColorInt()
1637 const IVec4 channelBits = getChannelBitDepth(format.type); in getTextureBorderColorInt()
1638 const IVec4 valueMin = getNBitSignedIntegerVec4MinValue(channelBits); in getTextureBorderColorInt()
1639 const IVec4 valueMax = getNBitSignedIntegerVec4MaxValue(channelBits); in getTextureBorderColorInt()
1640 IVec4 result; in getTextureBorderColorInt()
1666 const IVec4 channelBits = getChannelBitDepth(format.type); in getTextureBorderColorUint()