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", "", "binding_model/dynamic_offset", "shader_reuse_differing_layout_compute.amber"));
43 group->addChild(cts_amber::createAmberTestCase(testCtx, "shader_reuse_differing_layout_graphics", "", "binding_model/dynamic_offset", "shader_reuse_differing_layout_graphics.amber"));
44 }
45
46 } // anonymous
47
createDynamicOffsetTests(tcu::TestContext & testCtx)48 tcu::TestCaseGroup* createDynamicOffsetTests (tcu::TestContext& testCtx)
49 {
50 return createTestGroup(testCtx, "dynamic_offset", "Dynamic offset tests.", populateDynamicOffsetTests);
51 }
52
53 } // BindingModel
54 } // vkt
55