1 /*------------------------------------------------------------------------
2  * Vulkan Conformance Tests
3  * ------------------------
4  *
5  * Copyright (c) 2020 The Khronos Group Inc.
6  * Copyright (c) 2020 Google Inc.
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 Dynamic offset tests.
23  *//*--------------------------------------------------------------------*/
24 
25 #include "vktBindingDynamicOffsetTests.hpp"
26 #include "vktAmberTestCase.hpp"
27 #include "vktTestGroupUtil.hpp"
28 
29 using namespace vk;
30 
31 namespace vkt
32 {
33 namespace BindingModel
34 {
35 namespace
36 {
37 
populateDynamicOffsetTests(tcu::TestCaseGroup * group)38 void populateDynamicOffsetTests(tcu::TestCaseGroup *group)
39 {
40     tcu::TestContext &testCtx = group->getTestContext();
41 
42     group->addChild(cts_amber::createAmberTestCase(testCtx, "shader_reuse_differing_layout_compute",
43                                                    "binding_model/dynamic_offset",
44                                                    "shader_reuse_differing_layout_compute.amber"));
45     group->addChild(cts_amber::createAmberTestCase(testCtx, "shader_reuse_differing_layout_graphics",
46                                                    "binding_model/dynamic_offset",
47                                                    "shader_reuse_differing_layout_graphics.amber"));
48 }
49 
50 } // namespace
51 
createDynamicOffsetTests(tcu::TestContext & testCtx)52 tcu::TestCaseGroup *createDynamicOffsetTests(tcu::TestContext &testCtx)
53 {
54     return createTestGroup(testCtx, "dynamic_offset", populateDynamicOffsetTests);
55 }
56 
57 } // namespace BindingModel
58 } // namespace vkt
59