Monado OpenXR Runtime
vk_queue_builder Struct Reference

A builder for creating a list of queue create infos, allocate on the stack and then pass into vkCreateDevice. More...

#include <vk/vk_queue_builder.h>

Collaboration diagram for vk_queue_builder:

Data Fields

VkDeviceQueueCreateInfo create_infos [VK_BUNDLE_MAX_QUEUES]
 Array of queue create infos to fill in. More...
 
float priorities [VK_BUNDLE_MAX_QUEUES][VK_BUNDLE_MAX_QUEUES]
 Array of queue priorities to fill in. More...
 
uint32_t create_info_count
 Count of queue create infos and priorities added. More...
 
uint32_t total_count
 Can create multiple queues in the same family, this is the total number of queues that are created, must be less than or equal to VK_BUNDLE_MAX_QUEUES. More...
 

Detailed Description

A builder for creating a list of queue create infos, allocate on the stack and then pass into vkCreateDevice.

Field Documentation

◆ create_info_count

uint32_t vk_queue_builder::create_info_count

Count of queue create infos and priorities added.

◆ create_infos

VkDeviceQueueCreateInfo vk_queue_builder::create_infos[VK_BUNDLE_MAX_QUEUES]

Array of queue create infos to fill in.

◆ priorities

float vk_queue_builder::priorities[VK_BUNDLE_MAX_QUEUES][VK_BUNDLE_MAX_QUEUES]

Array of queue priorities to fill in.

While VK_BUNDLE_MAX_QUEUES is the maximum total number of queues, there can either be that many queues from one family, or one queue from each of that many families, or any combination in between. Since we don't know ahead of time how many families will be used, we allocate the maximum in each dimension for simplicity.

◆ total_count

uint32_t vk_queue_builder::total_count

Can create multiple queues in the same family, this is the total number of queues that are created, must be less than or equal to VK_BUNDLE_MAX_QUEUES.


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