1 /*------------------------------------------------------------------------
2  * Vulkan Conformance Tests
3  * ------------------------
4  *
5  * Copyright (c) 2018 The Khronos Group Inc.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  *//*!
20  * \file
21  * \brief Vulkan Transform Feedback Tests
22  *//*--------------------------------------------------------------------*/
23 
24 #include "vktTransformFeedbackTests.hpp"
25 #include "vktTransformFeedbackSimpleTests.hpp"
26 #include "vktTransformFeedbackFuzzLayoutTests.hpp"
27 #include "vktPrimitivesGeneratedQueryTests.hpp"
28 #include "vktTestGroupUtil.hpp"
29 #include "vktTestCase.hpp"
30 #include "vkPipelineConstructionUtil.hpp"
31 
32 namespace vkt
33 {
34 namespace TransformFeedback
35 {
36 
createTests(tcu::TestContext & testCtx,const std::string & name)37 tcu::TestCaseGroup *createTests(tcu::TestContext &testCtx, const std::string &name)
38 {
39     de::MovePtr<tcu::TestCaseGroup> transformFeedbackGroup(new tcu::TestCaseGroup(testCtx, name.c_str()));
40 
41     {
42         // For simple tests, we're going to run them with different GPL construction types.
43         const vk::PipelineConstructionType constructionTypes[]{
44             vk::PIPELINE_CONSTRUCTION_TYPE_MONOLITHIC,
45             vk::PIPELINE_CONSTRUCTION_TYPE_FAST_LINKED_LIBRARY,
46             vk::PIPELINE_CONSTRUCTION_TYPE_LINK_TIME_OPTIMIZED_LIBRARY,
47         };
48         for (const auto &constructionType : constructionTypes)
49             transformFeedbackGroup->addChild(createTransformFeedbackSimpleTests(testCtx, constructionType));
50     }
51 
52     transformFeedbackGroup->addChild(createTransformFeedbackFuzzLayoutTests(testCtx));
53     transformFeedbackGroup->addChild(createPrimitivesGeneratedQueryTests(testCtx));
54 
55     return transformFeedbackGroup.release();
56 }
57 
58 } // namespace TransformFeedback
59 } // namespace vkt
60