Function Prototype

vkSetLatencySleepModeNV

Enable or Disable low latency mode on a swapchain

To enable or disable low latency mode on a swapchain, call:

VkResult vkSetLatencySleepModeNV(
    VkDevice device,
    VkSwapchainKHR swapchain,
    const VkLatencySleepModeInfoNV* pSleepModeInfo);
  • device is the device associated with swapchain.
  • swapchain is the swapchain to enable or disable low latency mode on.
  • pSleepModeInfo is NULL or a pointer to a VkLatencySleepModeInfoNV structure specifying the parameters of the latency sleep mode.

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.

Valid Usage (Implicit)

VUID-vkSetLatencySleepModeNV-pSleepModeInfo-parameter

pSleepModeInfo must be a valid pointer to a valid VkLatencySleepModeInfoNV structure

VUID-vkSetLatencySleepModeNV-swapchain-parent

swapchain must have been created, allocated, or retrieved from device