This file contains a unified Vulkan device, which holds state and pointers to both the Vulkan physical and logical devices, as well as other information such as the swapchain.
More...
Go to the source code of this file.
This file contains a unified Vulkan device, which holds state and pointers to both the Vulkan physical and logical devices, as well as other information such as the swapchain.
- Author
- Travis Vroman (travi.nosp@m.s@ko.nosp@m.hieng.nosp@m.ine..nosp@m.com)
- Version
- 1.0
- Date
- 2022-01-11
- Copyright
- Kohi Game Engine is Copyright (c) Travis Vroman 2021-2022
◆ vulkan_device_create()
Creates a new Vulkan device and assigns it to the given context.
- Parameters
-
context | A pointer to the Vulkan context. |
- Returns
- True on success; otherwise false.
◆ vulkan_device_destroy()
Destroys the device present in the given context.
- Parameters
-
context | A pointer to the Vulkan context. |
◆ vulkan_device_detect_depth_format()
Detects and assigns the depth format for the given device.
- Parameters
-
device | A pointer to the device. |
- Returns
- True if successful; otherwise false.
◆ vulkan_device_query_swapchain_support()
void vulkan_device_query_swapchain_support |
( |
VkPhysicalDevice |
physical_device, |
|
|
VkSurfaceKHR |
surface, |
|
|
vulkan_swapchain_support_info * |
out_support_info |
|
) |
| |
Queries for swapchain support data for the given physical device and surface.
- Parameters
-
physical_device | The Vulkan physical device. |
surface | The Vulkan surface. |
out_support_info | A pointer to hold the support info. |