C Specification
To enable or disable low latency mode on a swapchain, call:
// Provided by VK_NV_low_latency2
VkResult vkSetLatencySleepModeNV(
VkDevice device,
VkSwapchainKHR swapchain,
const VkLatencySleepModeInfoNV* pSleepModeInfo);
Parameters
-
device
is the device associated withswapchain
. -
swapchain
is the swapchain to enable or disable low latency mode on. -
pSleepModeInfo
isNULL
or a pointer to a VkLatencySleepModeInfoNV structure specifying the parameters of the latency sleep mode.
Description
If pSleepModeInfo
is NULL
, vkSetLatencySleepModeNV
will
disable low latency mode, low latency boost, and set the minimum present
interval previously specified by VkLatencySleepModeInfoNV to zero on
swapchain
.
As an exception to the normal rules for objects which are externally
synchronized, the swapchain passed to vkSetLatencySleepModeNV
may be
simultaneously used by other threads in calls to functions other than
vkDestroySwapchainKHR.
Access to the swapchain data associated with this extension must be atomic
within the implementation.
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.