Function Prototype

vkGetDeviceQueue2

Get a queue handle from a device

To retrieve a handle to a VkQueue object with specific VkDeviceQueueCreateFlags creation flags, call:

void vkGetDeviceQueue2(
    VkDevice device,
    const VkDeviceQueueInfo2* pQueueInfo,
    VkQueue* pQueue);
  • device is the logical device that owns the queue.
  • pQueueInfo is a pointer to a VkDeviceQueueInfo2 structure, describing parameters of the device queue to be retrieved.
  • pQueue is a pointer to a VkQueue object that will be filled with the handle for the requested queue.

Valid Usage (Implicit)

VUID-vkGetDeviceQueue2-pQueueInfo-parameter

pQueueInfo must be a valid pointer to a valid VkDeviceQueueInfo2 structure

VUID-vkGetDeviceQueue2-pQueue-parameter

pQueue must be a valid pointer to a VkQueue handle