Monado OpenXR Runtime
vk_queue_family.c File Reference

Vulkan queue family helpers. More...

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

Functions

VkResult vk_queue_family_find_graphics (struct vk_bundle *vk, struct vk_queue_family *out_graphics_queue_family)
 Find the first graphics queue family. More...
 
VkResult vk_queue_family_find_and_avoid_graphics (struct vk_bundle *vk, VkQueueFlags required_flags, struct vk_queue_family *out_queue_family)
 Find a queue family with the given flags, preferring queues without graphics. More...
 

Detailed Description

Function Documentation

◆ vk_queue_family_find_and_avoid_graphics()

VkResult vk_queue_family_find_and_avoid_graphics ( struct vk_bundle vk,
VkQueueFlags  required_flags,
struct vk_queue_family out_queue_family 
)

Find a queue family with the given flags, preferring queues without graphics.

Parameters
vkThe Vulkan bundle to find the queue family for.
required_flagsThe flags that must be supported by the queue family.
out_queue_familyThe queue family to return.
Returns
VK_SUCCESS if the queue family was found, otherwise an error code.

References vk_get_physical_device_queue_family_properties().

◆ vk_queue_family_find_graphics()

VkResult vk_queue_family_find_graphics ( struct vk_bundle vk,
struct vk_queue_family out_graphics_queue_family 
)

Find the first graphics queue family.

Parameters
vkThe Vulkan bundle to find the queue family for.
out_graphics_queue_familyThe queue family to return.
Returns
VK_SUCCESS if the queue family was found, otherwise an error code.

References vk_get_physical_device_queue_family_properties().