1 /*------------------------------------------------------------------------
2 * Vulkan Conformance Tests
3 * ------------------------
5 * Copyright (c) 2020 Valve Corporation.
6 * Copyright (c) 2020 The Khronos Group Inc.
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 * \brief Amber tests in the GLSL group.
23 *//*--------------------------------------------------------------------*/
25 #include "vktAmberGlslTests.hpp"
26 #include "vktAmberTestCase.hpp"
37 tcu::TestCaseGroup* createCombinedOperationsGroup (tcu::TestContext& testCtx)
39 static const std::string kGroupName = "combined_operations";
40 static const std::vector<std::pair<std::string, std::string>> combinedOperationsTests =
42 { "notxor", "Bitwise negation of a bitwise xor operation" },
43 { "negintdivand", "Bitwise and of a negative value that was divided" },
46 de::MovePtr<tcu::TestCaseGroup> group{new tcu::TestCaseGroup{testCtx, kGroupName.c_str(), "Combined operations test group"}};
47 for (const auto& test : combinedOperationsTests)
49 group->addChild(createAmberTestCase(testCtx, test.first.c_str(), test.second.c_str(), kGroupName.c_str(), test.first + ".amber"));
51 return group.release();