Lines Matching refs:TextureFormat
73 bool isSRGB (TextureFormat format) in isSRGB()
75 return format.order == TextureFormat::sR || in isSRGB()
76 format.order == TextureFormat::sRG || in isSRGB()
77 format.order == TextureFormat::sRGB || in isSRGB()
78 format.order == TextureFormat::sRGBA; in isSRGB()
81 bool isCombinedDepthStencilType (TextureFormat::ChannelType type) in isCombinedDepthStencilType()
84 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 27); in isCombinedDepthStencilType()
86 return type == TextureFormat::UNSIGNED_INT_24_8 || in isCombinedDepthStencilType()
87 type == TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV; in isCombinedDepthStencilType()
91 TextureChannelClass getTextureChannelClass (TextureFormat::ChannelType channelType) in getTextureChannelClass()
94 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 27); in getTextureChannelClass()
98 case TextureFormat::SNORM_INT8: return TEXTURECHANNELCLASS_SIGNED_FIXED_POINT; in getTextureChannelClass()
99 case TextureFormat::SNORM_INT16: return TEXTURECHANNELCLASS_SIGNED_FIXED_POINT; in getTextureChannelClass()
100 case TextureFormat::SNORM_INT32: return TEXTURECHANNELCLASS_SIGNED_FIXED_POINT; in getTextureChannelClass()
101 case TextureFormat::UNORM_INT8: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
102 case TextureFormat::UNORM_INT16: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
103 case TextureFormat::UNORM_INT24: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
104 case TextureFormat::UNORM_INT32: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
105 case TextureFormat::UNORM_SHORT_565: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
106 case TextureFormat::UNORM_SHORT_555: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
107 case TextureFormat::UNORM_SHORT_4444: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
108 case TextureFormat::UNORM_SHORT_5551: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
109 case TextureFormat::UNORM_INT_101010: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
110 case TextureFormat::UNORM_INT_1010102_REV: return TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT; in getTextureChannelClass()
111 case TextureFormat::UNSIGNED_INT_1010102_REV: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
112 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: return TEXTURECHANNELCLASS_FLOATING_POINT; in getTextureChannelClass()
113 case TextureFormat::UNSIGNED_INT_999_E5_REV: return TEXTURECHANNELCLASS_FLOATING_POINT; in getTextureChannelClass()
114 …case TextureFormat::UNSIGNED_INT_24_8: return TEXTURECHANNELCLASS_LAST; //!< packed unorm24… in getTextureChannelClass()
115 case TextureFormat::SIGNED_INT8: return TEXTURECHANNELCLASS_SIGNED_INTEGER; in getTextureChannelClass()
116 case TextureFormat::SIGNED_INT16: return TEXTURECHANNELCLASS_SIGNED_INTEGER; in getTextureChannelClass()
117 case TextureFormat::SIGNED_INT32: return TEXTURECHANNELCLASS_SIGNED_INTEGER; in getTextureChannelClass()
118 case TextureFormat::UNSIGNED_INT8: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
119 case TextureFormat::UNSIGNED_INT16: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
120 case TextureFormat::UNSIGNED_INT24: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
121 case TextureFormat::UNSIGNED_INT32: return TEXTURECHANNELCLASS_UNSIGNED_INTEGER; in getTextureChannelClass()
122 case TextureFormat::HALF_FLOAT: return TEXTURECHANNELCLASS_FLOATING_POINT; in getTextureChannelClass()
123 case TextureFormat::FLOAT: return TEXTURECHANNELCLASS_FLOATING_POINT; in getTextureChannelClass()
124 …case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: return TEXTURECHANNELCLASS_LAST; //!< packed … in getTextureChannelClass()
237 static Vec2 getChannelValueRange (TextureFormat::ChannelType channelType) in getChannelValueRange()
240 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 27); in getChannelValueRange()
248 case TextureFormat::SNORM_INT8: in getChannelValueRange()
249 case TextureFormat::SNORM_INT16: in getChannelValueRange()
250 case TextureFormat::SNORM_INT32: cMin = -1.0f; cMax = 1.0f; break; in getChannelValueRange()
253 case TextureFormat::UNORM_INT8: in getChannelValueRange()
254 case TextureFormat::UNORM_INT16: in getChannelValueRange()
255 case TextureFormat::UNORM_INT24: in getChannelValueRange()
256 case TextureFormat::UNORM_INT32: in getChannelValueRange()
257 case TextureFormat::UNORM_SHORT_565: in getChannelValueRange()
258 case TextureFormat::UNORM_SHORT_4444: in getChannelValueRange()
259 case TextureFormat::UNORM_INT_101010: in getChannelValueRange()
260 case TextureFormat::UNORM_INT_1010102_REV: cMin = 0.0f; cMax = 1.0f; break; in getChannelValueRange()
263 case TextureFormat::SIGNED_INT8: cMin = -128.0f; cMax = 127.0f; break; in getChannelValueRange()
264 case TextureFormat::SIGNED_INT16: cMin = -32768.0f; cMax = 32767.0f; break; in getChannelValueRange()
265 case TextureFormat::SIGNED_INT32: cMin = -2147483648.0f; cMax = 2147483647.0f; break; in getChannelValueRange()
266 case TextureFormat::UNSIGNED_INT8: cMin = 0.0f; cMax = 255.0f; break; in getChannelValueRange()
267 case TextureFormat::UNSIGNED_INT16: cMin = 0.0f; cMax = 65535.0f; break; in getChannelValueRange()
268 case TextureFormat::UNSIGNED_INT24: cMin = 0.0f; cMax = 16777215.0f; break; in getChannelValueRange()
269 case TextureFormat::UNSIGNED_INT32: cMin = 0.0f; cMax = 4294967295.f; break; in getChannelValueRange()
270 case TextureFormat::HALF_FLOAT: cMin = -1e3f; cMax = 1e3f; break; in getChannelValueRange()
271 case TextureFormat::FLOAT: cMin = -1e5f; cMax = 1e5f; break; in getChannelValueRange()
272 case TextureFormat::UNSIGNED_INT_11F_11F_10F_REV: cMin = 0.0f; cMax = 1e4f; break; in getChannelValueRange()
273 case TextureFormat::UNSIGNED_INT_999_E5_REV: cMin = 0.0f; cMax = 1e5f; break; in getChannelValueRange()
290 TextureFormatInfo getTextureFormatInfo (const TextureFormat& format) in getTextureFormatInfo()
293 if (format == TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT_1010102_REV)) in getTextureFormatInfo()
298 else if (format.order == TextureFormat::D || format.order == TextureFormat::DS) in getTextureFormatInfo()
303 else if (format == TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_SHORT_5551)) in getTextureFormatInfo()
324 static IVec4 getChannelBitDepth (TextureFormat::ChannelType channelType) in getChannelBitDepth()
327 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 27); 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()
364 IVec4 getTextureFormatBitDepth (const TextureFormat& format) in getTextureFormatBitDepth()
380 static IVec4 getChannelMantissaBitDepth (TextureFormat::ChannelType channelType) in getChannelMantissaBitDepth()
383 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 27); in getChannelMantissaBitDepth()
387 case TextureFormat::SNORM_INT8: in getChannelMantissaBitDepth()
388 case TextureFormat::SNORM_INT16: in getChannelMantissaBitDepth()
389 case TextureFormat::SNORM_INT32: in getChannelMantissaBitDepth()
390 case TextureFormat::UNORM_INT8: in getChannelMantissaBitDepth()
391 case TextureFormat::UNORM_INT16: in getChannelMantissaBitDepth()
392 case TextureFormat::UNORM_INT24: in getChannelMantissaBitDepth()
393 case TextureFormat::UNORM_INT32: in getChannelMantissaBitDepth()
394 case TextureFormat::UNORM_SHORT_565: in getChannelMantissaBitDepth()
395 case TextureFormat::UNORM_SHORT_4444: in getChannelMantissaBitDepth()
396 case TextureFormat::UNORM_SHORT_555: in getChannelMantissaBitDepth()
397 case TextureFormat::UNORM_SHORT_5551: in getChannelMantissaBitDepth()
398 case TextureFormat::UNORM_INT_101010: in getChannelMantissaBitDepth()
399 case TextureFormat::UNORM_INT_1010102_REV: in getChannelMantissaBitDepth()
400 case TextureFormat::SIGNED_INT8: in getChannelMantissaBitDepth()
401 case TextureFormat::SIGNED_INT16: in getChannelMantissaBitDepth()
402 case TextureFormat::SIGNED_INT32: in getChannelMantissaBitDepth()
403 case TextureFormat::UNSIGNED_INT8: in getChannelMantissaBitDepth()
404 case TextureFormat::UNSIGNED_INT16: in getChannelMantissaBitDepth()
405 case TextureFormat::UNSIGNED_INT24: in getChannelMantissaBitDepth()
406 case TextureFormat::UNSIGNED_INT32: in getChannelMantissaBitDepth()
407 case TextureFormat::UNSIGNED_INT_1010102_REV: in getChannelMantissaBitDepth()
408 case TextureFormat::UNSIGNED_INT_24_8: in getChannelMantissaBitDepth()
409 case TextureFormat::UNSIGNED_INT_999_E5_REV: 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()
422 IVec4 getTextureFormatMantissaBitDepth (const TextureFormat& format) in getTextureFormatMantissaBitDepth()
438 BVec4 getTextureFormatChannelMask (const TextureFormat& format) in getTextureFormatChannelMask()
563 …DE_ASSERT(access.getFormat().order == TextureFormat::DS || access.getFormat().order == TextureForm… in clearDepth()
570 …DE_ASSERT(access.getFormat().order == TextureFormat::DS || access.getFormat().order == TextureForm… in clearStencil()
637 …sDepth = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::T… in fillWithComponentGradients()
638 …Stencil = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::T… in fillWithComponentGradients()
714 …sDepth = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::T… in fillWithGrid()
715 …Stencil = access.getFormat().order == tcu::TextureFormat::DS || access.getFormat().order == tcu::T… in fillWithGrid()
815 …HasDepth = (src.getFormat().order == tcu::TextureFormat::DS || src.getFormat().order == tcu::Tex… in copy()
816 …asStencil = (src.getFormat().order == tcu::TextureFormat::DS || src.getFormat().order == tcu::Tex… in copy()
817 …HasDepth = (dst.getFormat().order == tcu::TextureFormat::DS || dst.getFormat().order == tcu::Tex… in copy()
818 …asStencil = (dst.getFormat().order == tcu::TextureFormat::DS || dst.getFormat().order == tcu::Tex… in copy()
917 const TextureFormat& format = access.getFormat(); in estimatePixelValueRange()
1047 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 27); in toSamplerAccess()
1062 DE_ASSERT(baseAccess.getFormat().order == TextureFormat::DS || in toSamplerAccess()
1063 (mode == Sampler::MODE_DEPTH && baseAccess.getFormat().order == TextureFormat::D) || in toSamplerAccess()
1064 (mode == Sampler::MODE_STENCIL && baseAccess.getFormat().order == TextureFormat::S)); in toSamplerAccess()
1069 case TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV: in toSamplerAccess()
1074 return AccessType(TextureFormat(TextureFormat::D, TextureFormat::FLOAT), in toSamplerAccess()
1082 return AccessType(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), in toSamplerAccess()
1095 case TextureFormat::UNSIGNED_INT_24_8: in toSamplerAccess()
1100 return AccessType(TextureFormat(TextureFormat::D, TextureFormat::UNORM_INT24), in toSamplerAccess()
1108 return AccessType(TextureFormat(TextureFormat::S, TextureFormat::UNSIGNED_INT8), in toSamplerAccess()
1141 TextureFormat getEffectiveDepthStencilTextureFormat (const TextureFormat& baseFormat, Sampler::Dept… in getEffectiveDepthStencilTextureFormat()
1220 static const TextureSwizzle& getBorderColorReadSwizzle (TextureFormat::ChannelOrder order) in getBorderColorReadSwizzle()
1223 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 18); in getBorderColorReadSwizzle()
1242 case TextureFormat::R: swizzle = &R; break; in getBorderColorReadSwizzle()
1243 case TextureFormat::A: swizzle = &A; break; in getBorderColorReadSwizzle()
1244 case TextureFormat::I: swizzle = &I; break; in getBorderColorReadSwizzle()
1245 case TextureFormat::L: swizzle = &L; break; in getBorderColorReadSwizzle()
1246 case TextureFormat::LA: swizzle = &LA; break; in getBorderColorReadSwizzle()
1247 case TextureFormat::RG: swizzle = &RG; break; in getBorderColorReadSwizzle()
1248 case TextureFormat::RA: swizzle = &RA; break; in getBorderColorReadSwizzle()
1249 case TextureFormat::RGB: swizzle = &RGB; break; in getBorderColorReadSwizzle()
1250 case TextureFormat::RGBA: swizzle = &RGBA; break; in getBorderColorReadSwizzle()
1251 case TextureFormat::ARGB: swizzle = &RGBA; break; in getBorderColorReadSwizzle()
1252 case TextureFormat::BGRA: swizzle = &RGBA; break; in getBorderColorReadSwizzle()
1253 case TextureFormat::sR: swizzle = &R; break; in getBorderColorReadSwizzle()
1254 case TextureFormat::sRG: swizzle = &RG; break; in getBorderColorReadSwizzle()
1255 case TextureFormat::sRGB: swizzle = &RGB; break; in getBorderColorReadSwizzle()
1256 case TextureFormat::sRGBA: swizzle = &RGBA; break; in getBorderColorReadSwizzle()
1257 case TextureFormat::D: swizzle = &D; break; in getBorderColorReadSwizzle()
1258 case TextureFormat::S: swizzle = &S; break; in getBorderColorReadSwizzle()
1260 case TextureFormat::DS: in getBorderColorReadSwizzle()
1316 static tcu::Vec4 getTextureBorderColorFloat (const TextureFormat& format, const Sampler& sampler) in getTextureBorderColorFloat()
1352 static tcu::IVec4 getTextureBorderColorInt (const TextureFormat& format, const Sampler& sampler) in getTextureBorderColorInt()
1381 static tcu::UVec4 getTextureBorderColorUint (const TextureFormat& format, const Sampler& sampler) in getTextureBorderColorUint()
1410 tcu::Vector<ScalarType, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& sampler) in sampleTextureBorder()
1434 template tcu::Vector<float, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& sa…
1435 template tcu::Vector<deInt32, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& s…
1436 template tcu::Vector<deUint32, 4> sampleTextureBorder (const TextureFormat& format, const Sampler& …