Monado OpenXR Runtime
vk_queue_builder.c File Reference

Vulkan queue builder helper. More...

#include "vk/vk_queue_builder.h"
#include "vk/vk_helpers.h"
#include <assert.h>
Include dependency graph for vk_queue_builder.c:

Functions

struct vk_queue_pair vk_queue_builder_add (struct vk_queue_builder *builder, uint32_t family_index)
 Add a queue to the builder, will assert if it runs out of space, assumes that the user can share the queue with other users. More...
 

Detailed Description

Vulkan queue builder helper.

Author
Jakob Bornecrantz tborn.nosp@m.ecra.nosp@m.ntz@n.nosp@m.vidi.nosp@m.a.com

Function Documentation

◆ vk_queue_builder_add()

struct vk_queue_pair vk_queue_builder_add ( struct vk_queue_builder builder,
uint32_t  family_index 
)

Add a queue to the builder, will assert if it runs out of space, assumes that the user can share the queue with other users.

Parameters
builderThe builder to add the queue to.
family_indexThe family index of the queue to add.
Returns
The queue pair of the added queue.

References vk_queue_pair::family_index, and vk_queue_pair::index.