Lines Matching refs:format

21  * \brief Texture format tests.
1222 TextureFormat getBaseFormat (TextureFormat format)
1228 const TextureFormat curBaseFmt (baseOrders[baseOrderNdx], format.type);
1233 return format;
1236 ConstPixelBufferAccess getInputAccess (TextureFormat format)
1238 const TextureFormat inputFormat = getBaseFormat(format);
1240 const int numPixels = s_formatData[format.type].inputSize / inputPixelSize;
1243 DE_ASSERT(numPixels*inputPixelSize == s_formatData[format.type].inputSize);
1245 return ConstPixelBufferAccess(format, IVec3(numPixels, 1, 1), IVec3(inputPixelSize, 0, 0), s_formatData[format.type].input);
1249 const deUint32* getRawReference (TextureFormat format);
1252 const deUint32* getRawReference<float> (TextureFormat format)
1254 return s_formatData[format.type].floatRef;
1258 const deUint32* getRawReference<deInt32> (TextureFormat format)
1260 return s_formatData[format.type].intRef;
1264 const deUint32* getRawReference<deUint32> (TextureFormat format)
1266 return s_formatData[format.type].uintRef;
1407 static std::string getCaseName (TextureFormat format)
1411 str << format.type << "_" << format.order;
1419 TextureFormatCase (tcu::TestContext& testCtx, TextureFormat format)
1420 : tcu::TestCase (testCtx, getCaseName(format).c_str(), "")
1421 , m_format (format)
1423 DE_ASSERT(isValid(format));
1441 // use the combined format as storage format to get right reference values.
1532 ColorFormatCase (tcu::TestContext& testCtx, TextureFormat format)
1533 : TextureFormatCase(testCtx, format)
1535 DE_ASSERT(format.order != TextureFormat::D &&
1536 format.order != TextureFormat::S &&
1537 format.order != TextureFormat::DS);
1567 DepthFormatCase (tcu::TestContext& testCtx, TextureFormat format)
1568 : TextureFormatCase(testCtx, format)
1570 DE_ASSERT(format.order == TextureFormat::D);
1605 StencilFormatCase (tcu::TestContext& testCtx, TextureFormat format)
1606 : TextureFormatCase(testCtx, format)
1608 DE_ASSERT(format.order == TextureFormat::S);
1643 DepthStencilFormatCase (tcu::TestContext& testCtx, TextureFormat format)
1644 : TextureFormatCase(testCtx, format)
1646 DE_ASSERT(format.order == TextureFormat::DS);
1715 de::MovePtr<tcu::TestCaseGroup> group (new tcu::TestCaseGroup(testCtx, "texture_format", "Texture format tests"));
1725 const TextureFormat format ((TextureFormat::ChannelOrder)channelOrder, (TextureFormat::ChannelType)channelType);
1727 if (!isValid(format))
1730 if (tcu::isSRGB(format))
1733 if (format.order == TextureFormat::DS)
1734 group->addChild(new DepthStencilFormatCase(testCtx, format));
1735 else if (format.order == TextureFormat::D)
1736 group->addChild(new DepthFormatCase(testCtx, format));
1737 else if (format.order == TextureFormat::S)
1738 group->addChild(new StencilFormatCase(testCtx, format));
1740 group->addChild(new ColorFormatCase(testCtx, format));