Kohi Game Engine
vulkan_device Struct Reference

A representation of both the physical and logical Vulkan devices. Also contains handles to queues, command pools, and various properties of the devices. More...

#include <vulkan_types.h>

Data Fields

u32 api_major
 The supported device-level api major version. More...
 
u32 api_minor
 The supported device-level api minor version. More...
 
u32 api_patch
 The supported device-level api patch version. More...
 
VkPhysicalDevice physical_device
 The physical device. This is a representation of the GPU itself. More...
 
VkDevice logical_device
 The logical device. This is the application's view of the device, used for most Vulkan operations. More...
 
vulkan_swapchain_support_info swapchain_support
 The swapchain support info. More...
 
i32 graphics_queue_index
 The index of the graphics queue. More...
 
i32 present_queue_index
 The index of the present queue. More...
 
i32 transfer_queue_index
 The index of the transfer queue. More...
 
b8 supports_device_local_host_visible
 Indicates if the device supports a memory type that is both host visible and device local. More...
 
VkQueue graphics_queue
 A handle to a graphics queue. More...
 
VkQueue present_queue
 A handle to a present queue. More...
 
VkQueue transfer_queue
 A handle to a transfer queue. More...
 
VkCommandPool graphics_command_pool
 A handle to a command pool for graphics operations. More...
 
VkPhysicalDeviceProperties properties
 The physical device properties. More...
 
VkPhysicalDeviceFeatures features
 The physical device features. More...
 
VkPhysicalDeviceMemoryProperties memory
 The physical device memory properties. More...
 
VkFormat depth_format
 The chosen supported depth format. More...
 
u8 depth_channel_count
 The chosen depth format's number of channels. More...
 
vulkan_device_support_flags support_flags
 Indicates support for various features. More...
 

Detailed Description

A representation of both the physical and logical Vulkan devices. Also contains handles to queues, command pools, and various properties of the devices.

Field Documentation

◆ api_major

u32 api_major

The supported device-level api major version.

◆ api_minor

u32 api_minor

The supported device-level api minor version.

◆ api_patch

u32 api_patch

The supported device-level api patch version.

◆ depth_channel_count

u8 depth_channel_count

The chosen depth format's number of channels.

◆ depth_format

VkFormat depth_format

The chosen supported depth format.

◆ features

VkPhysicalDeviceFeatures features

The physical device features.

◆ graphics_command_pool

VkCommandPool graphics_command_pool

A handle to a command pool for graphics operations.

◆ graphics_queue

VkQueue graphics_queue

A handle to a graphics queue.

◆ graphics_queue_index

i32 graphics_queue_index

The index of the graphics queue.

◆ logical_device

VkDevice logical_device

The logical device. This is the application's view of the device, used for most Vulkan operations.

◆ memory

VkPhysicalDeviceMemoryProperties memory

The physical device memory properties.

◆ physical_device

VkPhysicalDevice physical_device

The physical device. This is a representation of the GPU itself.

◆ present_queue

VkQueue present_queue

A handle to a present queue.

◆ present_queue_index

i32 present_queue_index

The index of the present queue.

◆ properties

VkPhysicalDeviceProperties properties

The physical device properties.

◆ support_flags

Indicates support for various features.

◆ supports_device_local_host_visible

b8 supports_device_local_host_visible

Indicates if the device supports a memory type that is both host visible and device local.

◆ swapchain_support

vulkan_swapchain_support_info swapchain_support

The swapchain support info.

◆ transfer_queue

VkQueue transfer_queue

A handle to a transfer queue.

◆ transfer_queue_index

i32 transfer_queue_index

The index of the transfer queue.


The documentation for this struct was generated from the following file: