xref: /aosp_15_r20/external/deqp/external/vulkancts/framework/vulkan/vkShaderObjectUtil.hpp (revision 35238bce31c2a825756842865a792f8cf7f89930)
1 #ifndef _VKSHADEROBJECTUTIL_HPP
2 #define _VKSHADEROBJECTUTIL_HPP
3 /*------------------------------------------------------------------------
4  * Vulkan Conformance Tests
5  * ------------------------
6  *
7  * Copyright (c) 2023 LunarG, Inc.
8  * Copyright (c) 2023 Nintendo
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  *      http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  *//*!
23  * \file
24  * \brief Shader Object Test Case Utilities
25  *//*--------------------------------------------------------------------*/
26 
27 #include "vkDefs.hpp"
28 #include "vkRef.hpp"
29 
30 #include <string>
31 #include <vector>
32 
33 namespace vk
34 {
35 
36 #ifndef CTS_USES_VULKANSC
37 Move<VkShaderEXT> createShader(const DeviceInterface &vk, VkDevice device,
38                                const vk::VkShaderCreateInfoEXT &shaderCreateInfo);
39 std::vector<std::string> removeUnsupportedShaderObjectExtensions(const vk::InstanceInterface &vki,
40                                                                  const vk::VkPhysicalDevice physicalDevice,
41                                                                  const std::vector<std::string> &deviceExtensions);
42 #endif
43 
44 } // namespace vk
45 
46 #endif // _VKSHADEROBJECTUTIL_HPP
47