void TestGroup::init (void) { addChild(m_fboc.createRenderableTests()); addChild(m_fboc.createAttachmentTests()); addChild(m_fboc.createSizeTests()); TestCaseGroup* layerTests = new TestCaseGroup( getContext(), "layer", "Tests for layer attachments"); static const NumLayersParams s_layersParams[] = { // textureKind numLayers attachmentKind { GL_TEXTURE_2D_ARRAY, 1, 0 }, { GL_TEXTURE_2D_ARRAY, 1, 3 }, { GL_TEXTURE_2D_ARRAY, 4, 3 }, { GL_TEXTURE_2D_ARRAY, 4, 15 }, { GL_TEXTURE_3D, 1, 0 }, { GL_TEXTURE_3D, 1, 15 }, { GL_TEXTURE_3D, 4, 15 }, { GL_TEXTURE_3D, 64, 15 }, }; for (const NumLayersParams* lp = DE_ARRAY_BEGIN(s_layersParams); lp != DE_ARRAY_END(s_layersParams); ++lp) layerTests->addChild(new NumLayersTest(m_fboc, *lp)); addChild(layerTests); TestCaseGroup* sampleTests = new TestCaseGroup( getContext(), "samples", "Tests for multisample attachments"); static const NumSamplesParams s_samplesParams[] = { { { 0, SAMPLES_NONE, SAMPLES_NONE } }, { { 1, SAMPLES_NONE, SAMPLES_NONE } }, { { 2, SAMPLES_NONE, SAMPLES_NONE } }, { { 0, SAMPLES_TEXTURE, SAMPLES_NONE } }, { { 1, SAMPLES_TEXTURE, SAMPLES_NONE } }, { { 2, SAMPLES_TEXTURE, SAMPLES_NONE } }, { { 2, 1, SAMPLES_NONE } }, { { 2, 2, SAMPLES_NONE } }, { { 0, 0, SAMPLES_TEXTURE } }, { { 1, 2, 0 } }, { { 2, 2, 0 } }, { { 1, 1, 1 } }, { { 1, 2, 4 } }, }; for (const NumSamplesParams* lp = DE_ARRAY_BEGIN(s_samplesParams); lp != DE_ARRAY_END(s_samplesParams); ++lp) sampleTests->addChild(new NumSamplesTest(m_fboc, *lp)); addChild(sampleTests); }
void TestGroup::init (void) { tcu::TestCaseGroup* attCombTests = m_fboc.createAttachmentTests(); addChild(m_fboc.createRenderableTests()); attCombTests->addChild(new SupportedCombinationTest( m_fboc, "exists_supported", "Test for existence of a supported combination of formats")); addChild(attCombTests); addChild(m_fboc.createSizeTests()); }