Lines Matching refs:IVec4
324 static IVec4 getChannelBitDepth (TextureFormat::ChannelType channelType) in getChannelBitDepth()
331 case TextureFormat::SNORM_INT8: return IVec4(8); in getChannelBitDepth()
332 case TextureFormat::SNORM_INT16: return IVec4(16); in getChannelBitDepth()
333 case TextureFormat::SNORM_INT32: return IVec4(32); in getChannelBitDepth()
334 case TextureFormat::UNORM_INT8: return IVec4(8); in getChannelBitDepth()
335 case TextureFormat::UNORM_INT16: return IVec4(16); in getChannelBitDepth()
336 case TextureFormat::UNORM_INT24: return IVec4(24); in getChannelBitDepth()
337 case TextureFormat::UNORM_INT32: return IVec4(32); in getChannelBitDepth()
338 case TextureFormat::UNORM_SHORT_565: return IVec4(5,6,5,0); in getChannelBitDepth()
339 case TextureFormat::UNORM_SHORT_4444: return IVec4(4); in getChannelBitDepth()
340 case TextureFormat::UNORM_SHORT_555: return IVec4(5,5,5,0); in getChannelBitDepth()
341 case TextureFormat::UNORM_SHORT_5551: return IVec4(5,5,5,1); in getChannelBitDepth()
342 case TextureFormat::UNORM_INT_101010: return IVec4(10,10,10,0); in getChannelBitDepth()
343 case TextureFormat::UNORM_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
344 case TextureFormat::SIGNED_INT8: return IVec4(8); in getChannelBitDepth()
345 case TextureFormat::SIGNED_INT16: return IVec4(16); in getChannelBitDepth()
346 case TextureFormat::SIGNED_INT32: return IVec4(32); in getChannelBitDepth()
347 case TextureFormat::UNSIGNED_INT8: return IVec4(8); in getChannelBitDepth()
348 case TextureFormat::UNSIGNED_INT16: return IVec4(16); in getChannelBitDepth()
349 case TextureFormat::UNSIGNED_INT24: return IVec4(24); in getChannelBitDepth()
350 case TextureFormat::UNSIGNED_INT32: return IVec4(32); in getChannelBitDepth()
351 case TextureFormat::UNSIGNED_INT_1010102_REV: return IVec4(10,10,10,2); in getChannelBitDepth()
352 case TextureFormat::UNSIGNED_INT_24_8: return IVec4(24,8,0,0); in getChannelBitDepth()
353 case TextureFormat::HALF_FLOAT: return IVec4(16); in getChannelBitDepth()
354 case TextureFormat::FLOAT: return IVec4(32); in getChannelBitDepth()
355 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return IVec4(11,11,10,0); in getChannelBitDepth()
356 case TextureFormat::UNSIGNED_INT_999_E5_REV: return IVec4(9,9,9,0); in getChannelBitDepth()
357 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return IVec4(32,8,0,0); in getChannelBitDepth()
360 return IVec4(0); in getChannelBitDepth()
364 IVec4 getTextureFormatBitDepth (const TextureFormat& format) in getTextureFormatBitDepth()
366 const IVec4 chnBits = getChannelBitDepth(format.type); in getTextureFormatBitDepth()
372 const IVec4 chnSwz = IVec4((chnMask[0]) ? ((int)map[0]) : (0), in getTextureFormatBitDepth()
377 return select(chnBits.swizzle(chnSwz.x(), chnSwz.y(), chnSwz.z(), chnSwz.w()), IVec4(0), chnMask); in getTextureFormatBitDepth()
380 static IVec4 getChannelMantissaBitDepth (TextureFormat::ChannelType channelType) in getChannelMantissaBitDepth()
412 case TextureFormat::HALF_FLOAT: return IVec4(10); in getChannelMantissaBitDepth()
413 case TextureFormat::FLOAT: return IVec4(23); in getChannelMantissaBitDepth()
414 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return IVec4(6,6,5,0); in getChannelMantissaBitDepth()
415 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return IVec4(23,8,0,0); in getChannelMantissaBitDepth()
418 return IVec4(0); in getChannelMantissaBitDepth()
422 IVec4 getTextureFormatMantissaBitDepth (const TextureFormat& format) in getTextureFormatMantissaBitDepth()
424 const IVec4 chnBits = getChannelMantissaBitDepth(format.type); in getTextureFormatMantissaBitDepth()
430 const IVec4 chnSwz = IVec4((chnMask[0]) ? ((int)map[0]) : (0), in getTextureFormatMantissaBitDepth()
435 return select(chnBits.swizzle(chnSwz.x(), chnSwz.y(), chnSwz.z(), chnSwz.w()), IVec4(0), chnMask); in getTextureFormatMantissaBitDepth()
525 void clear (const PixelBufferAccess& access, const IVec4& color) in clear()
1292 static tcu::UVec4 getNBitUnsignedIntegerVec4MaxValue (const tcu::IVec4& numBits) in getNBitUnsignedIntegerVec4MaxValue()
1300 static tcu::IVec4 getNBitSignedIntegerVec4MaxValue (const tcu::IVec4& numBits) in getNBitSignedIntegerVec4MaxValue()
1302 return tcu::IVec4((numBits[0] > 0) ? (deIntMaxValue32(numBits[0])) : (0), in getNBitSignedIntegerVec4MaxValue()
1308 static tcu::IVec4 getNBitSignedIntegerVec4MinValue (const tcu::IVec4& numBits) in getNBitSignedIntegerVec4MinValue()
1310 return tcu::IVec4((numBits[0] > 0) ? (deIntMinValue32(numBits[0])) : (0), in getNBitSignedIntegerVec4MinValue()
1352 static tcu::IVec4 getTextureBorderColorInt (const TextureFormat& format, const Sampler& sampler) in getTextureBorderColorInt()
1356 const IVec4 channelBits = getChannelBitDepth(format.type); in getTextureBorderColorInt()
1357 const IVec4 valueMin = getNBitSignedIntegerVec4MinValue(channelBits); in getTextureBorderColorInt()
1358 const IVec4 valueMax = getNBitSignedIntegerVec4MaxValue(channelBits); in getTextureBorderColorInt()
1359 IVec4 result; in getTextureBorderColorInt()
1385 const IVec4 channelBits = getChannelBitDepth(format.type); in getTextureBorderColorUint()