vkAcquireWinrtDisplayNV
To acquire permission to directly access a display in Vulkan on Windows 10, call:
VkResult vkAcquireWinrtDisplayNV(
VkPhysicalDevice physicalDevice,
VkDisplayKHR display);
pub fn acquire_winrt_display_nv(
physical_device: vk::PhysicalDevice,
display: vk::DisplayKHR,
) -> vk::Result;
physicalDeviceThe physical device the display is on.displayThe display the caller wishes to control in Vulkan.
All permissions necessary to control the display are granted to the Vulkan
instance associated with physicalDevice until the display is released
or the application is terminated.
Permission to access the display may be revoked by events that cause
Windows 10 itself to lose access to display.
If this has happened, operations which require access to the display must
fail with an appropriate error code.
If permission to access display has already been acquired by another
entity, the call must return the error code
VK_ERROR_INITIALIZATION_FAILED.
winrt::Windows::Devices::Display::Core::DisplayTarget
by performing an operation equivalent to
winrt::Windows::Devices::Display::Core::DisplayManager.TryAcquireTarget()
on the DisplayTarget.Advanced display settings sub-page of the
Display settings control panel.
vkAcquireWinrtDisplayNV does not itself cause DWM to release a
display; this action must be performed outside of Vulkan.Valid Usage (Implicit)
VUID-vkAcquireWinrtDisplayNV-physicalDevice-parameter
physicalDevice must be a valid VkPhysicalDevice handle
VUID-vkAcquireWinrtDisplayNV-display-parameter
display must be a valid VkDisplayKHR handle
VUID-vkAcquireWinrtDisplayNV-display-parent
display must have been created, allocated, or retrieved from physicalDevice