C Specification
To set the power state of a display, call:
// Provided by VK_EXT_display_control
VkResult vkDisplayPowerControlEXT(
VkDevice device,
VkDisplayKHR display,
const VkDisplayPowerInfoEXT* pDisplayPowerInfo);
Parameters
-
device
is a logical device associated withdisplay
. -
display
is the display whose power state is modified. -
pDisplayPowerInfo
is a pointer to a VkDisplayPowerInfoEXT structure specifying the new power state ofdisplay
.
Description
If
VkPhysicalDeviceVulkanSC10Properties::deviceNoDynamicHostAllocations
is VK_TRUE
, vkDisplayPowerControlEXT
must not return
VK_ERROR_OUT_OF_HOST_MEMORY
.
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.