Test negative value conversion to b10g11r11 float format.
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / modules / vulkan / texture / vktTextureTests.cpp
1 /*------------------------------------------------------------------------
2  * Vulkan Conformance Tests
3  * ------------------------
4  *
5  * Copyright (c) 2016 The Khronos Group Inc.
6  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
7  * Copyright (c) 2014 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 Texture tests.
24  *//*--------------------------------------------------------------------*/
25
26 #include "vktTextureTests.hpp"
27 #include "vktTestGroupUtil.hpp"
28 #include "vktTextureFilteringTests.hpp"
29 #include "vktTextureMipmapTests.hpp"
30 #include "vktTextureFilteringExplicitLodTests.hpp"
31 #include "vktTextureShadowTests.hpp"
32 #include "vktTextureFilteringAnisotropyTests.hpp"
33 #include "vktTextureCompressedFormatTests.hpp"
34 #include "vktTextureSwizzleTests.hpp"
35 #include "vktTextureSubgroupLodTests.hpp"
36 #include "vktTextureConversionTests.hpp"
37
38 namespace vkt
39 {
40 namespace texture
41 {
42 namespace
43 {
44
45 void createTextureTests (tcu::TestCaseGroup* textureTests)
46 {
47         tcu::TestContext&       testCtx = textureTests->getTestContext();
48
49         textureTests->addChild(createTextureFilteringTests                      (testCtx));
50         textureTests->addChild(createTextureMipmappingTests                     (testCtx));
51         textureTests->addChild(createExplicitLodTests                           (testCtx));
52         textureTests->addChild(createTextureShadowTests                         (testCtx));
53         textureTests->addChild(createFilteringAnisotropyTests           (testCtx));
54         textureTests->addChild(createTextureCompressedFormatTests       (testCtx));
55         textureTests->addChild(createTextureSwizzleTests                        (testCtx));
56         textureTests->addChild(createTextureSubgroupLodTests            (testCtx));
57         textureTests->addChild(createTextureConversionTests                     (testCtx));
58 }
59
60 } // anonymous
61
62 tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
63 {
64         return createTestGroup(testCtx, "texture", "Texture Tests", createTextureTests);
65 }
66
67 } // texture
68 } // vkt