1 /* 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef VULKAN_LINUX_PLATFORM_VK_H 16 #define VULKAN_LINUX_PLATFORM_VK_H 17 18 #include <vulkan/vulkan.h> 19 20 #include <base/containers/string.h> 21 #include <base/containers/string_view.h> 22 #include <base/containers/unordered_map.h> 23 #include <base/containers/vector.h> 24 #include <render/namespace.h> 25 26 #include "vulkan/platform_hardware_buffer_util_vk.h" 27 28 RENDER_BEGIN_NAMESPACE() 29 class DeviceVk; 30 struct PlatformDeviceExtensions {}; 31 struct PlatformExtFunctions {}; 32 GetPlatformDeviceExtensions(BASE_NS::vector<BASE_NS::string_view> & extensions)33inline void GetPlatformDeviceExtensions(BASE_NS::vector<BASE_NS::string_view>& extensions) {} 34 GetEnabledPlatformDeviceExtensions(const BASE_NS::unordered_map<BASE_NS::string,uint32_t> & enabledDeviceExtensions)35inline PlatformDeviceExtensions GetEnabledPlatformDeviceExtensions( 36 const BASE_NS::unordered_map<BASE_NS::string, uint32_t>& enabledDeviceExtensions) 37 { 38 return {}; 39 } 40 41 bool CanDevicePresent(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); 42 43 const char* GetPlatformSurfaceName(); 44 RENDER_END_NAMESPACE() 45 #endif // VULKAN_LINUX_PLATFORM_VK_H