vkGetDeviceQueue(3)
C Specification
To retrieve a handle to aVkQueue object, call:
// Provided by VK_VERSION_1_0void vkGetDeviceQueue( VkDevice device, uint32_t queueFamilyIndex, uint32_t queueIndex, VkQueue* pQueue);Parameters
deviceis the logical device that owns the queue.queueFamilyIndexis the index of the queue family to which thequeue belongs.queueIndexis the index within this queue family of the queue toretrieve.pQueueis a pointer to aVkQueue object that will be filledwith the handle for the requested queue.
Description
vkGetDeviceQueuemust only be used to get queues that were createdwith theflags parameter ofVkDeviceQueueCreateInfo set to zero.To get queues that were created with a non-zeroflags parameter usevkGetDeviceQueue2.
VUID-vkGetDeviceQueue-queueFamilyIndex-00384
queueFamilyIndexmust be one of the queue family indicesspecified whendevicewas created, via theVkDeviceQueueCreateInfo structureVUID-vkGetDeviceQueue-queueIndex-00385
queueIndexmust be less than the value ofVkDeviceQueueCreateInfo::queueCountfor the queue familyindicated byqueueFamilyIndexwhendevicewas createdVUID-vkGetDeviceQueue-flags-01841
VkDeviceQueueCreateInfo::flagsmust have been zero whendevicewas created
Document Notes
For more information, see theVulkan Specification.
This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.