1 /*------------------------------------------------------------------------ 2 * Vulkan Conformance Tests 3 * ------------------------ 4 * 5 * Copyright (c) 2015 The Khronos Group Inc. 6 * Copyright (c) 2015 Samsung Electronics Co., Ltd. 7 * Copyright (c) 2016 The Android Open Source Project 8 * 9 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * you may not use this file except in compliance with the License. 11 * You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 * 21 *//*! 22 * \file 23 * \brief Vulkan shader render test cases 24 *//*--------------------------------------------------------------------*/ 25 26 #include "vktShaderBuiltinTests.hpp" 27 28 #include "deUniquePtr.hpp" 29 30 #include "vktShaderBuiltinPrecisionTests.hpp" 31 #include "vktShaderCommonFunctionTests.hpp" 32 #include "vktShaderIntegerFunctionTests.hpp" 33 #include "vktShaderPackingFunctionTests.hpp" 34 #include "vktShaderFConvertTests.hpp" 35 36 namespace vkt 37 { 38 namespace shaderexecutor 39 { 40 createBuiltinTests(tcu::TestContext & testCtx)41tcu::TestCaseGroup *createBuiltinTests(tcu::TestContext &testCtx) 42 { 43 // Built-in tests 44 de::MovePtr<tcu::TestCaseGroup> builtinTests(new tcu::TestCaseGroup(testCtx, "builtin")); 45 // Built-in Function Tests 46 de::MovePtr<tcu::TestCaseGroup> builtinFunctionTests(new tcu::TestCaseGroup(testCtx, "function")); 47 48 builtinFunctionTests->addChild(new ShaderCommonFunctionTests(testCtx)); 49 builtinFunctionTests->addChild(new ShaderIntegerFunctionTests(testCtx)); 50 builtinFunctionTests->addChild(new ShaderPackingFunctionTests(testCtx)); 51 52 builtinTests->addChild(builtinFunctionTests.release()); 53 builtinTests->addChild(new BuiltinPrecisionTests(testCtx)); 54 builtinTests->addChild(new BuiltinPrecision16BitTests(testCtx)); 55 builtinTests->addChild(new BuiltinPrecision16Storage32BitTests(testCtx)); 56 builtinTests->addChild(new BuiltinPrecisionDoubleTests(testCtx)); 57 builtinTests->addChild(createPrecisionFconvertGroup(testCtx)); 58 59 return builtinTests.release(); 60 } 61 62 } // namespace shaderexecutor 63 } // namespace vkt 64