Lines Matching refs:format

93 bool isDepthFormat (deUint32 format, tcu::Sampler::DepthStencilMode mode)
95 if (format == GL_LUMINANCE || format == GL_LUMINANCE_ALPHA || format == GL_ALPHA || format == GL_BGRA)
100 else if (glu::isCompressedFormat(format))
107 const tcu::TextureFormat fmt = glu::mapGLInternalFormat(format);
121 bool isStencilFormat (deUint32 format, tcu::Sampler::DepthStencilMode mode)
123 if (format == GL_LUMINANCE || format == GL_LUMINANCE_ALPHA || format == GL_ALPHA || format == GL_BGRA)
128 else if (glu::isCompressedFormat(format))
135 const tcu::TextureFormat fmt = glu::mapGLInternalFormat(format);
149 tcu::TextureChannelClass getFormatChannelClass (deUint32 format, tcu::Sampler::DepthStencilMode mode)
151 if (format == GL_LUMINANCE || format == GL_LUMINANCE_ALPHA || format == GL_ALPHA || format == GL_BGRA)
156 else if (glu::isCompressedFormat(format))
158 const tcu::CompressedTexFormat compressedFmt = glu::mapGLCompressedTexFormat(format);
164 const tcu::TextureFormat fmt = glu::mapGLInternalFormat(format);
177 void generateDefaultCompressedData (tcu::CompressedTexture& dst, const tcu::CompressedTexFormat& format)
179 const int blockByteSize = tcu::getBlockSize(format);
180 const tcu::IVec3 blockPixelSize = tcu::getBlockPixelSize(format);
189 if (tcu::isAstcFormat(format))
412 // make sure value is representable in the target format and clear channels
413 // not present in the target format.
466 bool isCoreFilterableFormat (deUint32 format, tcu::Sampler::DepthStencilMode mode)
468 const bool isLuminanceOrAlpha = (format == GL_LUMINANCE || format == GL_ALPHA || format == GL_LUMINANCE_ALPHA); // special case for luminance/alpha
469 const bool isUnsizedColorFormat = (format == GL_BGRA);
470 const bool isCompressed = glu::isCompressedFormat(format);
471 const bool isDepth = isDepthFormat(format, mode);
472 const bool isStencil = isStencilFormat(format, mode);
481 return glu::isGLInternalColorFormatFilterable(format);
680 << "Created texture with format " << glu::getTextureFormatName(m_texFormat)
1560 // format max
1573 // format min
2100 << "Created 3D texture with format " << glu::getTextureFormatName(m_texFormat)
2281 static bool isFormatSupported(deUint32 format, bool isGL45)
2283 if (isGL45 && (format == GL_LUMINANCE || format == GL_ALPHA || format == GL_LUMINANCE_ALPHA))
2320 deUint32 format;
2400 // .format
2403 const deUint32 format = formats[formatNdx].format;
2405 const bool isCompressed = glu::isCompressedFormat(format);
2406 const bool coreFilterable = isCoreFilterableFormat(format, sampleMode);
2431 if ((coreFilterable || !filterRequiresFilterability(filter)) && isFormatSupported(format, m_isGL45))
2435 format,
2451 deUint32 format;
2477 const deUint32 format = formats[formatNdx].format;
2481 const bool coreFilterable = isCoreFilterableFormat(format, sampleMode);
2487 rangeClampGroup->addChild(new TextureBorderClampRangeClampCase(m_context, caseName.c_str(), "", format, sampleMode, filter));
2496 deUint32 format;
2516 const deUint32 format = formats[formatNdx].format;
2523 format,
2546 deUint32 format;
2591 // .format
2598 const deUint32 format = formats[formatNdx].format;
2600 const bool coreFilterable = isCoreFilterableFormat(format, sampleMode);
2644 format,
2657 format,
2679 deUint32 format;
2693 const deUint32 format = formats[formatNdx].format;
2698 // (format).(linear|nearest|gather)_(pot|npot)
2711 format,
2724 deUint32 format;
2746 tcu::TestCaseGroup* const unusedGroup = new tcu::TestCaseGroup(m_testCtx, "unused_channels", "Tests channels that are not present in the internal format");
2751 if (isFormatSupported(formats[formatNdx].format, m_isGL45))
2756 formats[formatNdx].format,