1 /*------------------------------------------------------------------------- 2 * Vulkan Conformance Tests 3 * ------------------------ 4 * 5 * Copyright (c) 2017 Google Inc. 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 * 19 *//*! 20 * \file 21 * \brief YCbCr Conversion Tests 22 *//*--------------------------------------------------------------------*/ 23 24 #include "vktYCbCrTests.hpp" 25 #include "vktTestGroupUtil.hpp" 26 #include "vktYCbCrFormatTests.hpp" 27 #include "vktYCbCrFilteringTests.hpp" 28 #include "vktYCbCrViewTests.hpp" 29 #include "vktYCbCrImageQueryTests.hpp" 30 #include "vktYCbCrConversionTests.hpp" 31 #include "vktYCbCrCopyTests.hpp" 32 #include "vktYCbCrStorageImageWriteTests.hpp" 33 #include "vktYCbCrImageOffsetTests.hpp" 34 35 namespace vkt 36 { 37 namespace ycbcr 38 { 39 40 namespace 41 { 42 populateTestGroup(tcu::TestCaseGroup * ycbcrTests)43void populateTestGroup(tcu::TestCaseGroup *ycbcrTests) 44 { 45 tcu::TestContext &testCtx = ycbcrTests->getTestContext(); 46 47 ycbcrTests->addChild(createFormatTests(testCtx)); 48 ycbcrTests->addChild(createFilteringTests(testCtx)); 49 ycbcrTests->addChild(createViewTests(testCtx)); 50 ycbcrTests->addChild(createImageQueryTests(testCtx)); 51 ycbcrTests->addChild(createConversionTests(testCtx)); 52 ycbcrTests->addChild(createCopyTests(testCtx)); 53 ycbcrTests->addChild(createDimensionsCopyTests(testCtx)); 54 ycbcrTests->addChild(createStorageImageWriteTests(testCtx)); 55 ycbcrTests->addChild(createImageOffsetTests(testCtx)); 56 } 57 58 } // namespace 59 createTests(tcu::TestContext & testCtx,const std::string & name)60tcu::TestCaseGroup *createTests(tcu::TestContext &testCtx, const std::string &name) 61 { 62 return createTestGroup(testCtx, name.c_str(), populateTestGroup); 63 } 64 65 } // namespace ycbcr 66 } // namespace vkt 67