Lines Matching defs:format

90 inline tcu::IVec4 getBitsVec (const tcu::PixelFormat& format)
92 return tcu::IVec4(format.redBits, format.greenBits, format.blueBits, format.alphaBits);
95 inline tcu::BVec4 getCompareMask (const tcu::PixelFormat& format)
97 return tcu::BVec4(format.redBits > 0,
98 format.greenBits > 0,
99 format.blueBits > 0,
100 format.alphaBits > 0);
846 static inline glu::DataType getSamplerType (TextureType textureType, const tcu::TextureFormat& format)
848 if (isDepthFormat(format))
862 case TEXTURETYPE_2D: return glu::getSampler2DType(format);
863 case TEXTURETYPE_2D_ARRAY: return glu::getSampler2DArrayType(format);
864 case TEXTURETYPE_CUBE: return glu::getSamplerCubeType(format);
1222 // Check image format support.
1227 const auto format = vk::mapTextureFormat(m_baseParams.textureFormat);
1238 format, // VkFormat format;
2578 tcu::TextureFormat format;
2648 const tcu::TextureFormat& format = formats[formatNdx].format;
2673 if ((compareMode != tcu::Sampler::COMPAREMODE_NONE) != isDepthFormat(format))
2698 compareModeGroup->addChild(makeTextureGatherCase(textureType, m_testCtx, caseName.c_str(), gatherType, offsetSize, format, compareMode, wrapS, wrapT,
2702 compareModeGroup->addChild(makeTextureGatherCase(textureType, m_testCtx, "sparse_" + caseName, gatherType, offsetSize, format, compareMode, wrapS, wrapT,
2713 if (!isDepthFormat(format))
2730 swizzleGroup->addChild(makeTextureGatherCase(textureType, m_testCtx, caseName.c_str(), gatherType, offsetSize, format,
2734 swizzleGroup->addChild(makeTextureGatherCase(textureType, m_testCtx, "sparse_" + caseName, gatherType, offsetSize, format,
2774 const tcu::Sampler::CompareMode compareMode = isDepthFormat(format) ? tcu::Sampler::COMPAREMODE_LESS : tcu::Sampler::COMPAREMODE_NONE;
2776 if ((isUnormFormatType(format.type) || isDepthFormat(format)) && magFilter == tcu::Sampler::NEAREST)
2778 if ((isUIntFormatType(format.type) || isSIntFormatType(format.type)) &&
2784 filterModeGroup->addChild(makeTextureGatherCase(textureType, m_testCtx, caseName.c_str(), gatherType, offsetSize, format, compareMode,
2788 filterModeGroup->addChild(makeTextureGatherCase(textureType, m_testCtx, "sparse_" + caseName, gatherType, offsetSize, format, compareMode,
2819 if (isDepthFormat(format) && mode != LevelMode::NORMAL)
2823 const tcu::Sampler::CompareMode compareMode = isDepthFormat(format) ? tcu::Sampler::COMPAREMODE_LESS : tcu::Sampler::COMPAREMODE_NONE;
2826 baseLevelGroup->addChild(makeTextureGatherCase(textureType, m_testCtx, caseName.c_str(), gatherType, offsetSize, format,
2831 baseLevelGroup->addChild(makeTextureGatherCase(textureType, m_testCtx, "sparse_" + caseName, gatherType, offsetSize, format,