Function Prototype
vkQueueWaitIdle
Wait for a queue to become idle
To wait on the host for the completion of outstanding queue operations for a given queue, call:
VkResult vkQueueWaitIdle(
VkQueue queue);
pub fn queue_wait_idle(
queue: vk::Queue,
) -> vk::Result;
queueis the queue on which to wait.
vkQueueWaitIdle is equivalent to having submitted a valid fence to
every previously executed queue submission
command that accepts a fence, then waiting for all of those fences to
signal using vkWaitForFences with an infinite timeout and
waitAll set to VK_TRUE.
Even though vkQueuePresentKHR does not have a fence parameter, it does
accept a fence through VkSwapchainPresentFenceInfoEXT.
Valid Usage (Implicit)
VUID-vkQueueWaitIdle-queue-parameter
queue must be a valid VkQueue handle
Host Synchronization
- Host access to
queuemust be externally synchronized if it was not created withVK_DEVICE_QUEUE_CREATE_INTERNALLY_SYNCHRONIZED_BIT_KHR
Parent
VK_VERSION_1_0Type
Function Prototype