1 /*------------------------------------------------------------------------ 2 * Vulkan Conformance Tests 3 * ------------------------ 4 * 5 * Copyright (c) 2015 The Khronos Group Inc. 6 * Copyright (c) 2015 Intel Corporation 7 * 8 * Licensed under the Apache License, Version 2.0 (the "License"); 9 * you may not use this file except in compliance with the License. 10 * You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 * 20 *//*! 21 * \file 22 * \brief Draw Tests 23 *//*--------------------------------------------------------------------*/ 24 25 #include "vktDrawTests.hpp" 26 27 #include "vktDrawSimpleTest.hpp" 28 #include "vktDrawIndexedTest.hpp" 29 #include "vktDrawIndirectTest.hpp" 30 #include "vktDrawInstancedTests.hpp" 31 #include "vktTestGroupUtil.hpp" 32 #include "vktBasicDrawTests.hpp" 33 #include "vktDrawShaderDrawParametersTests.hpp" 34 #include "vktDrawNegativeViewportHeightTests.hpp" 35 #include "vktDrawInvertedDepthRangesTests.hpp" 36 #include "vktDrawDifferingInterpolationTests.hpp" 37 #include "vktDrawShaderLayerTests.hpp" 38 #include "vktDrawShaderViewportIndexTests.hpp" 39 40 namespace vkt 41 { 42 namespace Draw 43 { 44 45 namespace 46 { 47 createChildren(tcu::TestCaseGroup * group)48void createChildren (tcu::TestCaseGroup* group) 49 { 50 tcu::TestContext& testCtx = group->getTestContext(); 51 52 group->addChild(new SimpleDrawTests (testCtx)); 53 group->addChild(new DrawIndexedTests (testCtx)); 54 group->addChild(new IndirectDrawTests (testCtx)); 55 group->addChild(createBasicDrawTests (testCtx)); 56 group->addChild(new InstancedTests (testCtx)); 57 group->addChild(new ShaderDrawParametersTests (testCtx)); 58 group->addChild(createNegativeViewportHeightTests (testCtx)); 59 group->addChild(createZeroViewportHeightTests (testCtx)); 60 group->addChild(createInvertedDepthRangesTests (testCtx)); 61 group->addChild(createDifferingInterpolationTests (testCtx)); 62 group->addChild(createShaderLayerTests (testCtx)); 63 group->addChild(createShaderViewportIndexTests (testCtx)); 64 } 65 66 } // anonymous 67 createTests(tcu::TestContext & testCtx)68tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx) 69 { 70 return createTestGroup(testCtx, "draw", "Simple Draw tests", createChildren); 71 } 72 73 } // Draw 74 } // vkt 75