1 /*-------------------------------------------------------------------------
2 * Vulkan Conformance Tests
3 * ------------------------
4 *
5 * Copyright (c) 2021 The Khronos Group Inc.
6 * Copyright (c) 2021 Valve 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 Mesh Shader Tests
23 *//*--------------------------------------------------------------------*/
24
25 #include "vktMeshShaderTests.hpp"
26 #include "vktMeshShaderSmokeTests.hpp"
27 #include "vktMeshShaderSmokeTestsEXT.hpp"
28 #include "vktMeshShaderSyncTests.hpp"
29 #include "vktMeshShaderSyncTestsEXT.hpp"
30 #include "vktMeshShaderApiTests.hpp"
31 #include "vktMeshShaderApiTestsEXT.hpp"
32 #include "vktMeshShaderPropertyTests.hpp"
33 #include "vktMeshShaderBuiltinTests.hpp"
34 #include "vktMeshShaderBuiltinTestsEXT.hpp"
35 #include "vktMeshShaderMiscTests.hpp"
36 #include "vktMeshShaderMiscTestsEXT.hpp"
37 #include "vktMeshShaderInOutTestsEXT.hpp"
38 #include "vktMeshShaderPropertyTestsEXT.hpp"
39 #include "vktMeshShaderConditionalRenderingTestsEXT.hpp"
40 #include "vktMeshShaderProvokingVertexTestsEXT.hpp"
41 #include "vktMeshShaderQueryTestsEXT.hpp"
42
43 #include "deUniquePtr.hpp"
44
45 namespace vkt
46 {
47 namespace MeshShader
48 {
49
50 namespace
51 {
52 using GroupPtr = de::MovePtr<tcu::TestCaseGroup>;
53 }
54
createTests(tcu::TestContext & testCtx)55 tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
56 {
57 GroupPtr mainGroup (new tcu::TestCaseGroup(testCtx, "mesh_shader", "Mesh Shader Tests"));
58 GroupPtr nvGroup (new tcu::TestCaseGroup(testCtx, "nv", "Tests for VK_NV_mesh_shader"));
59 GroupPtr extGroup (new tcu::TestCaseGroup(testCtx, "ext", "Tests for VK_EXT_mesh_shader"));
60
61 nvGroup->addChild(createMeshShaderSmokeTests(testCtx));
62 nvGroup->addChild(createMeshShaderApiTests(testCtx));
63 nvGroup->addChild(createMeshShaderSyncTests(testCtx));
64 nvGroup->addChild(createMeshShaderPropertyTests(testCtx));
65 nvGroup->addChild(createMeshShaderBuiltinTests(testCtx));
66 nvGroup->addChild(createMeshShaderMiscTests(testCtx));
67 nvGroup->addChild(createMeshShaderInOutTests(testCtx));
68
69 extGroup->addChild(createMeshShaderSmokeTestsEXT(testCtx));
70 extGroup->addChild(createMeshShaderApiTestsEXT(testCtx));
71 extGroup->addChild(createMeshShaderSyncTestsEXT(testCtx));
72 extGroup->addChild(createMeshShaderBuiltinTestsEXT(testCtx));
73 extGroup->addChild(createMeshShaderMiscTestsEXT(testCtx));
74 extGroup->addChild(createMeshShaderInOutTestsEXT(testCtx));
75 extGroup->addChild(createMeshShaderPropertyTestsEXT(testCtx));
76 extGroup->addChild(createMeshShaderConditionalRenderingTestsEXT(testCtx));
77 extGroup->addChild(createMeshShaderProvokingVertexTestsEXT(testCtx));
78 extGroup->addChild(createMeshShaderQueryTestsEXT(testCtx));
79
80 mainGroup->addChild(nvGroup.release());
81 mainGroup->addChild(extGroup.release());
82 return mainGroup.release();
83 }
84
85 } // MeshShader
86 } // vkt
87