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_WINDOWS_PLATFORM_VK_H 16 #define VULKAN_WINDOWS_PLATFORM_VK_H 17 18 #include <vulkan/vulkan_core.h> 19 20 #include <base/containers/string_view.h> 21 #include <base/containers/unordered_map.h> 22 #include <base/containers/vector.h> 23 #include <render/namespace.h> 24 25 #include "vulkan/platform_hardware_buffer_util_vk.h" 26 27 RENDER_BEGIN_NAMESPACE() 28 class DeviceVk; 29 struct PlatformDeviceExtensions {}; 30 struct PlatformExtFunctions {}; 31 GetPlatformDeviceExtensions(BASE_NS::vector<BASE_NS::string_view> & extensions)32inline void GetPlatformDeviceExtensions(BASE_NS::vector<BASE_NS::string_view>& extensions) {} 33 GetEnabledPlatformDeviceExtensions(const BASE_NS::unordered_map<BASE_NS::string,uint32_t> & enabledDeviceExtensions)34inline PlatformDeviceExtensions GetEnabledPlatformDeviceExtensions( 35 const BASE_NS::unordered_map<BASE_NS::string, uint32_t>& enabledDeviceExtensions) 36 { 37 return {}; 38 } 39 40 bool CanDevicePresent(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily); 41 42 const char* GetPlatformSurfaceName(); 43 RENDER_END_NAMESPACE() 44 #endif // VULKAN_WINDOWS_PLATFORM_VK_H