Function Prototype
vkDisplayPowerControlEXT
Set the power state of a display
To set the power state of a display, call:
VkResult vkDisplayPowerControlEXT(
VkDevice device,
VkDisplayKHR display,
const VkDisplayPowerInfoEXT* pDisplayPowerInfo);
pub fn display_power_control_ext(
device: vk::Device,
display: vk::DisplayKHR,
p_display_power_info: *const vk::DisplayPowerInfoEXT,
) -> vk::Result;
deviceis a logical device associated withdisplay.displayis the display whose power state is modified.pDisplayPowerInfois a pointer to a VkDisplayPowerInfoEXT structure specifying the new power state ofdisplay.
Valid Usage (Implicit)
VUID-vkDisplayPowerControlEXT-device-parameter
device must be a valid VkDevice handle
VUID-vkDisplayPowerControlEXT-display-parameter
display must be a valid VkDisplayKHR handle
VUID-vkDisplayPowerControlEXT-pDisplayPowerInfo-parameter
pDisplayPowerInfo must be a valid pointer to a valid VkDisplayPowerInfoEXT structure
VUID-vkDisplayPowerControlEXT-commonparent
Both of device, and display must have been created, allocated, or retrieved from the same VkPhysicalDevice
Parent
VK_EXT_display_controlType
Function Prototype
Return Values
VK_SUCCESS
VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_UNKNOWN
VK_ERROR_VALIDATION_FAILED