Lines Matching refs:texFormat
219 static de::MovePtr<glu::Texture2D> createTextureFromInternalFormat (glu::RenderContext& renderCtx, deUint32 texFormat, const tcu::IVec2& size)
221 return de::MovePtr<glu::Texture2D>(new glu::Texture2D(renderCtx, texFormat, size.x(), size.y()));
224 static de::MovePtr<glu::Texture2D> createTextureFromFormatAndType (glu::RenderContext& renderCtx, deUint32 texFormat, deUint32 type, const tcu::IVec2& size)
226 return de::MovePtr<glu::Texture2D>(new glu::Texture2D(renderCtx, texFormat, type, size.x(), size.y()));
254 static de::MovePtr<glu::Texture3D> createTextureFromInternalFormat (glu::RenderContext& renderCtx, deUint32 texFormat, const tcu::IVec3& size)
256 return de::MovePtr<glu::Texture3D>(new glu::Texture3D(renderCtx, texFormat, size.x(), size.y(), size.z()));
259 static de::MovePtr<glu::Texture3D> createTextureFromFormatAndType (glu::RenderContext& renderCtx, deUint32 texFormat, deUint32 type, const tcu::IVec3& size)
261 return de::MovePtr<glu::Texture3D>(new glu::Texture3D(renderCtx, texFormat, type, size.x(), size.y(), size.z()));
284 de::MovePtr<T> genDefaultTexture (glu::RenderContext& renderCtx, const glu::ContextInfo& ctxInfo, deUint32 texFormat, const typename TextureTraits<T>::SizeType& size)
288 if (isDepthFormat(texFormat, tcu::Sampler::MODE_DEPTH) || isStencilFormat(texFormat, tcu::Sampler::MODE_STENCIL))
291 texture = TextureTraits<T>::createTextureFromInternalFormat(renderCtx, texFormat, size);
294 if (isDepthFormat(texFormat, tcu::Sampler::MODE_DEPTH))
301 if (isStencilFormat(texFormat, tcu::Sampler::MODE_STENCIL))
313 else if (!glu::isCompressedFormat(texFormat))
315 if (texFormat == GL_LUMINANCE || texFormat == GL_LUMINANCE_ALPHA || texFormat == GL_ALPHA || texFormat == GL_BGRA)
316 texture = TextureTraits<T>::createTextureFromFormatAndType(renderCtx, texFormat, GL_UNSIGNED_BYTE, size);
318 texture = TextureTraits<T>::createTextureFromInternalFormat(renderCtx, texFormat, size);
335 const tcu::CompressedTexFormat compressedFormat = glu::mapGLCompressedTexFormat(texFormat);
392 rr::GenericVec4 mapToFormatColorUnits (const tcu::TextureFormat& texFormat, const tcu::Vec4& normalizedRange)
394 const tcu::TextureFormatInfo texFormatInfo = tcu::getTextureFormatInfo(texFormat);
396 switch (tcu::getTextureChannelClass(texFormat.type))
410 rr::GenericVec4 mapToFormatColorRepresentable (const tcu::TextureFormat& texFormat, const tcu::Vec4& normalizedRange)
415 const rr::GenericVec4 inFormatUnits = mapToFormatColorUnits(texFormat, normalizedRange);
416 const tcu::BVec4 channelMask = tcu::getTextureFormatChannelMask(texFormat);
417 de::ArrayBuffer<deUint8, 4> buffer (texFormat.getPixelSize());
418 tcu::PixelBufferAccess access (texFormat, tcu::IVec3(1, 1, 1), buffer.getPtr());
420 if (tcu::isSRGB(texFormat))
422 DE_ASSERT(texFormat.type == tcu::TextureFormat::UNORM_INT8);
439 switch (tcu::getTextureChannelClass(texFormat.type))
527 deUint32 texFormat,
619 deUint32 texFormat,
627 , m_texFormat (texFormat)
629 , m_channelClass (getFormatChannelClass(texFormat, mode))
927 const tcu::TextureFormat texFormat = tcu::getEffectiveDepthStencilTextureFormat(m_texture->getRefTexture().getFormat(), m_sampleMode);
931 const bool isSRGB = texFormat.order == tcu::TextureFormat::sRGB || texFormat.order == tcu::TextureFormat::sRGBA;
1257 const tcu::TextureFormat texFormat = tcu::getEffectiveDepthStencilTextureFormat(m_texture->getRefTexture().getFormat(), m_sampleMode);
1265 refParams.samplerType = (!m_useShadowSampler) ? (glu::TextureTestUtil::getSamplerType(texFormat)) : (glu::TextureTestUtil::SAMPLERTYPE_SHADOW);
1357 deUint32 texFormat,
1380 deUint32 texFormat,
1389 texFormat,
1403 if (glu::isCompressedFormat(texFormat))
1405 const tcu::CompressedTexFormat compressedFormat = glu::mapGLCompressedTexFormat(texFormat);
1423 const tcu::TextureFormat texFormat = tcu::getEffectiveDepthStencilTextureFormat(getTexture()->getRefTexture().getFormat(), m_sampleMode);
1424 const tcu::TextureFormatInfo texFormatInfo = tcu::getTextureFormatInfo(texFormat);
1432 iteration.borderColor = mapToFormatColorRepresentable(texFormat, tcu::Vec4(0.3f, 0.7f, 0.2f, 0.5f));
1439 iteration.borderColor = mapToFormatColorRepresentable(texFormat, tcu::Vec4(0.9f, 0.2f, 0.4f, 0.6f));
1484 deUint32 texFormat,
1501 deUint32 texFormat,
1504 : TextureBorderClampTest(context, name, description, texFormat, mode, TextureBorderClampTest::STATE_TEXTURE_PARAM, 8, 32, SAMPLE_FILTER)
1513 const tcu::TextureFormat texFormat = tcu::getEffectiveDepthStencilTextureFormat(getTexture()->getRefTexture().getFormat(), m_sampleMode);
1545 const tcu::IVec4 numBits = tcu::getTextureFormatBitDepth(texFormat);
1625 iteration.borderColor = mapToFormatColorUnits(texFormat, tcu::Vec4(1.1f, 1.3f, 2.2f, 1.3f));
1635 iteration.borderColor = mapToFormatColorUnits(texFormat, tcu::Vec4(-0.2f, -0.9f, -2.4f, -0.6f));
1675 deUint32 texFormat,
1699 deUint32 texFormat,
1709 texFormat,
1726 const tcu::TextureFormat texFormat = tcu::getEffectiveDepthStencilTextureFormat(getTexture()->getRefTexture().getFormat(), m_sampleMode);
1727 const tcu::TextureFormatInfo texFormatInfo = tcu::getTextureFormatInfo(texFormat);
1732 iteration.borderColor = mapToFormatColorRepresentable(texFormat, tcu::Vec4(0.4f, 0.9f, 0.1f, 0.2f));
1771 deUint32 texFormat,
1789 deUint32 texFormat,
1796 texFormat,
1901 deUint32 texFormat,
1916 deUint32 texFormat,
1921 texFormat,
1940 const tcu::TextureFormat texFormat = tcu::getEffectiveDepthStencilTextureFormat(getTexture()->getRefTexture().getFormat(), m_sampleMode);
1941 const tcu::TextureFormatInfo texFormatInfo = tcu::getTextureFormatInfo(texFormat);
1942 const tcu::BVec4 channelMask = tcu::getTextureFormatChannelMask(texFormat);
1948 const rr::GenericVec4 effectiveColors = mapToFormatColorRepresentable(texFormat, tcu::Vec4(0.6f));
2003 deUint32 texFormat,
2052 deUint32 texFormat,
2059 , m_texFormat (texFormat)
2060 , m_channelClass (getFormatChannelClass(texFormat, tcu::Sampler::MODE_LAST))
2120 const tcu::TextureFormat texFormat = m_texture->getRefTexture().getFormat();
2121 const tcu::TextureFormatInfo texFormatInfo = tcu::getTextureFormatInfo(texFormat);
2123 m_borderColor = mapToFormatColorRepresentable(texFormat, tcu::Vec4(0.2f, 0.6f, 0.9f, 0.4f));
2253 const tcu::TextureFormat texFormat = m_texture->getRefTexture().getFormat();
2259 refParams.samplerType = glu::TextureTestUtil::getSamplerType(texFormat);