Lines Matching refs:config

234 // Framebuffer config.
322 FboIncompleteException (const FboConfig& config, GLenum reason, const char* file, int line);
346 FboIncompleteException::FboIncompleteException (const FboConfig& config, GLenum reason, const char* file, int line)
348 , m_config(config)
356 Framebuffer (sglr::Context& context, const FboConfig& config, int width, int height, deUint32 fbo = 0, deUint32 colorbuffer = 0, deUint32 depthbuffer = 0, deUint32 stencilbuffer = 0);
409 Framebuffer::Framebuffer (sglr::Context& context, const FboConfig& config, int width, int height, deUint32 fbo, deUint32 colorbuffer, deUint32 depthbuffer, deUint32 stencilbuffer)
410 : m_config (config)
418 checkColorFormatSupport(context, config.colorbufferFormat);
538 FboRenderCase (Context& context, const char* name, const char* description, const FboConfig& config);
546 static bool isConfigSupported (const FboConfig& config) { DE_UNREF(config); return true; }
552 FboRenderCase::FboRenderCase (Context& context, const char* name, const char* description, const FboConfig& config)
554 , m_config(config)
648 ColorClearsTest (Context& context, const FboConfig& config);
654 ColorClearsTest::ColorClearsTest (Context& context, const FboConfig& config)
655 : FboRenderCase(context, config.getName().c_str(), "Color buffer clears", config)
735 IntersectingQuadsTest (Context& context, const FboConfig& config, bool npot = false);
740 static bool isConfigSupported (const FboConfig& config);
750 IntersectingQuadsNpotTest (Context& context, const FboConfig& config)
751 : IntersectingQuadsTest(context, config, true)
756 IntersectingQuadsTest::IntersectingQuadsTest (Context& context, const FboConfig& config, bool npot)
757 : FboRenderCase (context, (string(npot ? "npot_" : "") + config.getName()).c_str(), "Intersecting textured quads", config)
763 bool IntersectingQuadsTest::isConfigSupported (const FboConfig& config)
766 return config.depthbufferType != GL_NONE &&
767 config.stencilbufferType == GL_NONE;
828 MixTest (Context& context, const FboConfig& config, bool npot = false);
833 static bool isConfigSupported (const FboConfig& config);
845 MixNpotTest (Context& context, const FboConfig& config)
846 : MixTest(context, config, true)
851 MixTest::MixTest (Context& context, const FboConfig& config, bool npot)
852 : FboRenderCase (context, (string(npot ? "mix_npot_" : "mix_") + config.getName()).c_str(), "Use two fbos as sources in draw operation", config)
860 bool MixTest::isConfigSupported (const FboConfig& config)
863 return config.colorbufferType == GL_TEXTURE_2D &&
864 config.stencilbufferType == GL_NONE;
923 BlendTest (Context& context, const FboConfig& config, bool npot = false);
928 static bool isConfigSupported (const FboConfig& config);
938 BlendNpotTest (Context& context, const FboConfig& config)
939 : BlendTest(context, config, true)
944 BlendTest::BlendTest (Context& context, const FboConfig& config, bool npot)
945 : FboRenderCase (context, (string(npot ? "blend_npot_" : "blend_") + config.getName()).c_str(), "Blend to fbo", config)
951 bool BlendTest::isConfigSupported (const FboConfig& config)
954 return config.stencilbufferType == GL_NONE;
999 StencilClearsTest (Context& context, const FboConfig& config);
1004 static bool isConfigSupported (const FboConfig& config);
1007 StencilClearsTest::StencilClearsTest (Context& context, const FboConfig& config)
1008 : FboRenderCase(context, config.getName().c_str(), "Stencil clears", config)
1086 bool StencilClearsTest::isConfigSupported (const FboConfig& config)
1088 return config.stencilbufferType != GL_NONE;
1094 StencilTest (Context& context, const FboConfig& config, bool npot = false);
1099 static bool isConfigSupported (const FboConfig& config);
1109 StencilNpotTest (Context& context, const FboConfig& config)
1110 : StencilTest(context, config, true)
1115 StencilTest::StencilTest (Context& context, const FboConfig& config, bool npot)
1116 : FboRenderCase (context, (string(npot ? "npot_" : "") + config.getName()).c_str(), "Stencil ops", config)
1122 bool StencilTest::isConfigSupported (const FboConfig& config)
1124 return config.stencilbufferType != GL_NONE;
1197 SharedColorbufferTest (Context& context, const FboConfig& config);
1203 SharedColorbufferTest::SharedColorbufferTest (Context& context, const FboConfig& config)
1204 : FboRenderCase(context, config.getName().c_str(), "Shared colorbuffer", config)
1323 SharedColorbufferClearsTest (Context& context, const FboConfig& config);
1326 static bool isConfigSupported (const FboConfig& config);
1330 SharedColorbufferClearsTest::SharedColorbufferClearsTest (Context& context, const FboConfig& config)
1331 : FboRenderCase(context, config.getName().c_str(), "Shared colorbuffer clears", config)
1335 bool SharedColorbufferClearsTest::isConfigSupported (const FboConfig& config)
1337 return config.colorbufferType != GL_NONE &&
1338 config.depthbufferType == GL_NONE &&
1339 config.stencilbufferType == GL_NONE;
1430 SharedDepthbufferTest (Context& context, const FboConfig& config);
1433 static bool isConfigSupported (const FboConfig& config);
1437 SharedDepthbufferTest::SharedDepthbufferTest (Context& context, const FboConfig& config)
1438 : FboRenderCase(context, config.getName().c_str(), "Shared depthbuffer", config)
1442 bool SharedDepthbufferTest::isConfigSupported (const FboConfig& config)
1444 return config.depthbufferType == GL_RENDERBUFFER;
1544 TexSubImageAfterRenderTest (Context& context, const FboConfig& config);
1547 static bool isConfigSupported (const FboConfig& config);
1551 TexSubImageAfterRenderTest::TexSubImageAfterRenderTest (Context& context, const FboConfig& config)
1552 : FboRenderCase(context, (string("after_render_") + config.getName()).c_str(), "TexSubImage after rendering to texture", config)
1556 bool TexSubImageAfterRenderTest::isConfigSupported (const FboConfig& config)
1558 return config.colorbufferType == GL_TEXTURE_2D &&
1559 (config.colorbufferFormat == GL_RGB || config.colorbufferFormat == GL_RGBA) &&
1560 config.depthbufferType == GL_NONE &&
1561 config.stencilbufferType == GL_NONE;
1610 TexSubImageBetweenRenderTest (Context& context, const FboConfig& config);
1613 static bool isConfigSupported (const FboConfig& config);
1617 TexSubImageBetweenRenderTest::TexSubImageBetweenRenderTest (Context& context, const FboConfig& config)
1618 : FboRenderCase(context, (string("between_render_") + config.getName()).c_str(), "TexSubImage between rendering calls", config)
1622 bool TexSubImageBetweenRenderTest::isConfigSupported (const FboConfig& config)
1624 return config.colorbufferType == GL_TEXTURE_2D &&
1625 (config.colorbufferFormat == GL_RGB || config.colorbufferFormat == GL_RGBA) &&
1626 config.depthbufferType == GL_NONE &&
1627 config.stencilbufferType == GL_NONE;
1693 ResizeTest (Context& context, const FboConfig& config);
1699 ResizeTest::ResizeTest (Context& context, const FboConfig& config)
1700 : FboRenderCase(context, config.getName().c_str(), "Resize framebuffer", config)
1824 RecreateBuffersTest (Context& context, const FboConfig& config, bool rebind);
1827 static bool isConfigSupported (const FboConfig& config);
1838 RecreateBuffersNoRebindTest (Context& context, const FboConfig& config)
1839 : RecreateBuffersTest<Buffers>(context, config, false)
1848 RecreateBuffersRebindTest (Context& context, const FboConfig& config)
1849 : RecreateBuffersTest<Buffers>(context, config, true)
1855 RecreateBuffersTest<Buffers>::RecreateBuffersTest (Context& context, const FboConfig& config, bool rebind)
1856 : FboRenderCase (context, (string(rebind ? "rebind_" : "no_rebind_") + config.getName()).c_str(), "Recreate buffers", config)
1862 bool RecreateBuffersTest<Buffers>::isConfigSupported (const FboConfig& config)
1864 if ((Buffers & GL_COLOR_BUFFER_BIT) && config.colorbufferType == GL_NONE)
1866 if ((Buffers & GL_DEPTH_BUFFER_BIT) && config.depthbufferType == GL_NONE)
1868 if ((Buffers & GL_STENCIL_BUFFER_BIT) && config.stencilbufferType == GL_NONE)
2131 FboConfig config;
2132 config.colorbufferType = colorbufferConfigs[colorbufferNdx].type;
2133 config.colorbufferFormat = colorbufferConfigs[colorbufferNdx].format;
2134 config.depthbufferType = depthbufferConfigs[depthbufferNdx].type;
2135 config.depthbufferFormat = depthbufferConfigs[depthbufferNdx].format;
2136 config.stencilbufferType = stencilbufferConfigs[stencilbufferNdx].type;
2137 config.stencilbufferFormat = stencilbufferConfigs[stencilbufferNdx].format;
2139 if (CaseType::isConfigSupported(config))
2140 group->addChild(new CaseType(group->getContext(), config));