Lines Matching refs:format
420 void clearColorBuffer (sglr::Context& ctx, const tcu::TextureFormat& format, const tcu::Vec4& value)
422 const tcu::TextureChannelClass fmtClass = tcu::getTextureChannelClass(format.type);
445 void readPixels (sglr::Context& ctx, tcu::Surface& dst, int x, int y, int width, int height, const tcu::TextureFormat& format, const tcu::Vec4& scale, const tcu::Vec4& bias)
447 tcu::TextureFormat readFormat = getFramebufferReadFormat(format);
453 ctx.readPixels(x, y, width, height, transferFmt.format, transferFmt.dataType, &data[0]);
485 const char* getFormatName (deUint32 format)
487 switch (format)
549 TCU_FAIL("Unknown format");
553 glu::DataType getFragmentOutputType (const tcu::TextureFormat& format)
555 switch (tcu::getTextureChannelClass(format.type))
569 DE_FATAL("Unknown format");
574 tcu::TextureFormat getFramebufferReadFormat (const tcu::TextureFormat& format)
576 switch (tcu::getTextureChannelClass(format.type))
584 if (format.type == tcu::TextureFormat::UNORM_INT16 || format.type == tcu::TextureFormat::SNORM_INT16)
597 DE_FATAL("Unknown format");
616 tcu::RGBA getFormatThreshold (const tcu::TextureFormat& format)
618 const tcu::IVec4 bits = tcu::getTextureFormatBitDepth(format);
628 const tcu::TextureFormat format = glu::mapGLInternalFormat(glFormat);
630 return getFormatThreshold(format);