Home | History | Annotate | Download | only in common

Lines Matching refs:IVec4

452 IVec4 getFormatMinIntValue (const TextureFormat& format)
458 case TextureFormat::SIGNED_INT8: return IVec4(std::numeric_limits<deInt8>::min());
459 case TextureFormat::SIGNED_INT16: return IVec4(std::numeric_limits<deInt16>::min());
460 case TextureFormat::SIGNED_INT32: return IVec4(std::numeric_limits<deInt32>::min());
464 return IVec4(0);
468 IVec4 getFormatMaxIntValue (const TextureFormat& format)
474 case TextureFormat::SIGNED_INT8: return IVec4(std::numeric_limits<deInt8>::max());
475 case TextureFormat::SIGNED_INT16: return IVec4(std::numeric_limits<deInt16>::max());
476 case TextureFormat::SIGNED_INT32: return IVec4(std::numeric_limits<deInt32>::max());
480 return IVec4(0);
504 static IVec4 getChannelBitDepth (TextureFormat::ChannelType channelType)
511 case TextureFormat::SNORM_INT8: return IVec4(8);
512 case TextureFormat::SNORM_INT16: return IVec4(16);
513 case TextureFormat::SNORM_INT32: return IVec4(32);
514 case TextureFormat::UNORM_INT8: return IVec4(8);
515 case TextureFormat::UNORM_INT16: return IVec4(16);
516 case TextureFormat::UNORM_INT24: return IVec4(24);
517 case TextureFormat::UNORM_INT32: return IVec4(32);
518 case TextureFormat::UNORM_BYTE_44: return IVec4(4,4,0,0);
519 case TextureFormat::UNORM_SHORT_565: return IVec4(5,6,5,0);
520 case TextureFormat::UNORM_SHORT_4444: return IVec4(4);
521 case TextureFormat::UNORM_SHORT_555: return IVec4(5,5,5,0);
522 case TextureFormat::UNORM_SHORT_5551: return IVec4(5,5,5,1);
523 case TextureFormat::UNORM_SHORT_1555: return IVec4(1,5,5,5);
524 case TextureFormat::UNSIGNED_BYTE_44: return IVec4(4,4,0,0);
525 case TextureFormat::UNSIGNED_SHORT_565: return IVec4(5,6,5,0);
526 case TextureFormat::UNSIGNED_SHORT_4444: return IVec4(4);
527 case TextureFormat::UNSIGNED_SHORT_5551: return IVec4(5,5,5,1);
528 case TextureFormat::UNORM_INT_101010: return IVec4(10,10,10,0);
529 case TextureFormat::SNORM_INT_1010102_REV: return IVec4(10,10,10,2);
530 case TextureFormat::UNORM_INT_1010102_REV: return IVec4(10,10,10,2);
531 case TextureFormat::SIGNED_INT8: return IVec4(8);
532 case TextureFormat::SIGNED_INT16: return IVec4(16);
533 case TextureFormat::SIGNED_INT32: return IVec4(32);
534 case TextureFormat::UNSIGNED_INT8: return IVec4(8);
535 case TextureFormat::UNSIGNED_INT16: return IVec4(16);
536 case TextureFormat::UNSIGNED_INT24: return IVec4(24);
537 case TextureFormat::UNSIGNED_INT32: return IVec4(32);
538 case TextureFormat::SIGNED_INT_1010102_REV: return IVec4(10,10,10,2);
539 case TextureFormat::UNSIGNED_INT_1010102_REV: return IVec4(10,10,10,2);
540 case TextureFormat::UNSIGNED_INT_16_8_8: return IVec4(16,8,0,0);
541 case TextureFormat::UNSIGNED_INT_24_8: return IVec4(24,8,0,0);
542 case TextureFormat::UNSIGNED_INT_24_8_REV: return IVec4(24,8,0,0);
543 case TextureFormat::HALF_FLOAT: return IVec4(16);
544 case TextureFormat::FLOAT: return IVec4(32);
545 case TextureFormat::FLOAT64: return IVec4(64);
546 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return IVec4(11,11,10,0);
547 case TextureFormat::UNSIGNED_INT_999_E5_REV: return IVec4(9,9,9,0);
548 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return IVec4(32,8,0,0);
551 return IVec4(0);
555 IVec4 getTextureFormatBitDepth (const TextureFormat& format)
557 const IVec4 chnBits = getChannelBitDepth(format.type);
563 const IVec4 chnSwz = IVec4((chnMask[0]) ? ((int)map[0]) : (0),
568 return select(chnBits.swizzle(chnSwz.x(), chnSwz.y(), chnSwz.z(), chnSwz.w()), IVec4(0), chnMask);
571 static IVec4 getChannelMantissaBitDepth (TextureFormat::ChannelType channelType)
613 case TextureFormat::HALF_FLOAT: return IVec4(10);
614 case TextureFormat::FLOAT: return IVec4(23);
615 case TextureFormat::FLOAT64: return IVec4(52);
616 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return IVec4(6,6,5,0);
617 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return IVec4(23,8,0,0);
620 return IVec4(0);
624 IVec4 getTextureFormatMantissaBitDepth (const TextureFormat& format)
626 const IVec4 chnBits = getChannelMantissaBitDepth(format.type);
632 const IVec4 chnSwz = IVec4((chnMask[0]) ? ((int)map[0]) : (0),
637 return select(chnBits.swizzle(chnSwz.x(), chnSwz.y(), chnSwz.z(), chnSwz.w()), IVec4(0), chnMask);
727 void clear (const PixelBufferAccess& access, const IVec4& color)
1555 static tcu::UVec4 getNBitUnsignedIntegerVec4MaxValue (const tcu::IVec4& numBits)
1563 static tcu::IVec4 getNBitSignedIntegerVec4MaxValue (const tcu::IVec4& numBits)
1565 return tcu::IVec4((numBits[0] > 0) ? (deIntMaxValue32(numBits[0])) : (0),
1571 static tcu::IVec4 getNBitSignedIntegerVec4MinValue (const tcu::IVec4& numBits)
1573 return tcu::IVec4((numBits[0] > 0) ? (deIntMinValue32(numBits[0])) : (0),
1615 static tcu::IVec4 getTextureBorderColorInt (const TextureFormat& format, const Sampler& sampler)
1619 const IVec4 channelBits = getChannelBitDepth(format.type);
1620 const IVec4 valueMin = getNBitSignedIntegerVec4MinValue(channelBits);
1621 const IVec4 valueMax = getNBitSignedIntegerVec4MaxValue(channelBits);
1622 IVec4 result;
1648 const IVec4 channelBits = getChannelBitDepth(format.type);