C Specification
To provide the synchronization primitive used to delay host CPU work for lower latency rendering, call:
// Provided by VK_NV_low_latency2
VkResult vkLatencySleepNV(
VkDevice device,
VkSwapchainKHR swapchain,
const VkLatencySleepInfoNV* pSleepInfo);
Parameters
-
deviceis the device associated withswapchain. -
swapchainis the swapchain to delay associated CPU work based on VkLatencySubmissionPresentIdNV submissions. -
pSleepInfois a pointer to a VkLatencySleepInfoNV structure specifying the parameters of the latency sleep.
Description
vkLatencySleepNV returns immediately.
Applications should use vkWaitSemaphores with
pSleepInfo->signalSemaphore to delay host CPU work.
CPU work refers to application work done before presenting which includes
but is not limited to: input sampling, simulation, command buffer recording,
command buffer submission, and present submission.
Applications should call this function before input sampling, and exactly
once between presents.
Document Notes
For more information, see the Vulkan Specification
This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.