• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2023 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_view.h>
21 #include <base/containers/vector.h>
22 #include <render/namespace.h>
23 
24 #include "vulkan/platform_hardware_buffer_util_vk.h"
25 
26 RENDER_BEGIN_NAMESPACE()
27 class DeviceVk;
28 struct PlatformDeviceExtensions {};
29 struct PlatformExtFunctions {};
30 
GetPlatformDeviceExtensions(BASE_NS::vector<BASE_NS::string_view> & extensions)31 inline void GetPlatformDeviceExtensions(BASE_NS::vector<BASE_NS::string_view>& extensions) {}
32 
GetEnabledPlatformDeviceExtensions(const BASE_NS::unordered_map<BASE_NS::string,uint32_t> & enabledDeviceExtensions)33 inline PlatformDeviceExtensions GetEnabledPlatformDeviceExtensions(
34     const BASE_NS::unordered_map<BASE_NS::string, uint32_t>& enabledDeviceExtensions)
35 {
36     return {};
37 }
38 
39 bool CanDevicePresent(VkInstance instance, VkPhysicalDevice device, uint32_t queuefamily);
40 
41 const char* GetPlatformSurfaceName();
42 RENDER_END_NAMESPACE()
43 #endif // VULKAN_LINUX_PLATFORM_VK_H