• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 Vulkan Query Pool Tests
23  *//*--------------------------------------------------------------------*/
24 
25 #include "vktQueryPoolTests.hpp"
26 
27 #include "vktTestGroupUtil.hpp"
28 #include "vktQueryPoolOcclusionTests.hpp"
29 #include "vktQueryPoolStatisticsTests.hpp"
30 #include "vktQueryPoolPerformanceTests.hpp"
31 #include "vktQueryPoolConcurrentTests.hpp"
32 #include "vktQueryPoolFragInvocationTests.hpp"
33 
34 namespace vkt
35 {
36 namespace QueryPool
37 {
38 
39 namespace
40 {
41 
createChildren(tcu::TestCaseGroup * queryPoolTests)42 void createChildren (tcu::TestCaseGroup* queryPoolTests)
43 {
44 	tcu::TestContext&	testCtx		= queryPoolTests->getTestContext();
45 
46 	queryPoolTests->addChild(new QueryPoolOcclusionTests(testCtx));
47 	queryPoolTests->addChild(new QueryPoolStatisticsTests(testCtx));
48 #ifndef CTS_USES_VULKANSC
49 	queryPoolTests->addChild(new QueryPoolPerformanceTests(testCtx));
50 #endif
51 	queryPoolTests->addChild(new QueryPoolConcurrentTests(testCtx));
52 	queryPoolTests->addChild(createFragInvocationTests(testCtx));
53 }
54 
55 } // anonymous
56 
createTests(tcu::TestContext & testCtx,const std::string & name)57 tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx, const std::string& name)
58 {
59 	return createTestGroup(testCtx, name, createChildren);
60 }
61 
62 } // QueryPool
63 } // vkt
64