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 "vktDrawConcurrentTests.hpp"
29 #include "vktDrawIndexedTest.hpp"
30 #include "vktDrawIndirectTest.hpp"
31 #include "vktDrawInstancedTests.hpp"
32 #include "vktTestGroupUtil.hpp"
33 #include "vktBasicDrawTests.hpp"
34 #include "vktDrawShaderDrawParametersTests.hpp"
35 #include "vktDrawNegativeViewportHeightTests.hpp"
36 #include "vktDrawInvertedDepthRangesTests.hpp"
37 #include "vktDrawDifferingInterpolationTests.hpp"
38 #include "vktDrawShaderLayerTests.hpp"
39 #include "vktDrawShaderViewportIndexTests.hpp"
40 #include "vktDrawScissorTests.hpp"
41 #include "vktDrawMultipleInterpolationTests.hpp"
42 #include "vktDrawDiscardRectanglesTests.hpp"
43 #include "vktDrawExplicitVertexParameterTests.hpp"
44 #include "vktDrawOutputLocationTests.hpp"
45 #include "vktDrawDepthClampTests.hpp"
46 #include "vktDrawAhbTests.hpp"
47 #include "vktDrawMultipleClearsWithinRenderPass.hpp"
48 
49 namespace vkt
50 {
51 namespace Draw
52 {
53 
54 namespace
55 {
56 
createChildren(tcu::TestCaseGroup * group)57 void createChildren (tcu::TestCaseGroup* group)
58 {
59 	tcu::TestContext&	testCtx		= group->getTestContext();
60 
61 	group->addChild(new ConcurrentDrawTests					(testCtx));
62 	group->addChild(new SimpleDrawTests						(testCtx));
63 	group->addChild(new DrawIndexedTests					(testCtx));
64 	group->addChild(new IndirectDrawTests					(testCtx));
65 	group->addChild(createBasicDrawTests					(testCtx));
66 	group->addChild(new InstancedTests						(testCtx));
67 	group->addChild(new ShaderDrawParametersTests			(testCtx));
68 	group->addChild(createNegativeViewportHeightTests		(testCtx));
69 	group->addChild(createZeroViewportHeightTests			(testCtx));
70 	group->addChild(createInvertedDepthRangesTests			(testCtx));
71 	group->addChild(createDifferingInterpolationTests		(testCtx));
72 	group->addChild(createShaderLayerTests					(testCtx));
73 	group->addChild(createShaderViewportIndexTests			(testCtx));
74 	group->addChild(createScissorTests						(testCtx));
75 	group->addChild(createMultipleInterpolationTests		(testCtx));
76 	group->addChild(createDiscardRectanglesTests			(testCtx));
77 	group->addChild(createExplicitVertexParameterTests		(testCtx));
78 	group->addChild(createOutputLocationTests		        (testCtx));
79 	group->addChild(createDepthClampTests					(testCtx));
80 	group->addChild(createAhbTests							(testCtx));
81 	group->addChild(new MultipleClearsWithinRenderPassTests	(testCtx));
82 }
83 
84 } // anonymous
85 
createTests(tcu::TestContext & testCtx)86 tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
87 {
88 	return createTestGroup(testCtx, "draw", "Simple Draw tests", createChildren);
89 }
90 
91 } // Draw
92 } // vkt
93