Function Prototype
vkGetWinrtDisplayNV
Query the VkDisplayKHR corresponding to a WinRT DisplayTarget
When acquiring displays on Windows 10, an application may also wish to
enumerate and identify them using a native handle rather than a
VkDisplayKHR
handle.
To determine the VkDisplayKHR
handle corresponding to a
winrt::Windows::Devices::Display::Core::DisplayTarget
,
call:
VkResult vkGetWinrtDisplayNV(
VkPhysicalDevice physicalDevice,
uint32_t deviceRelativeId,
VkDisplayKHR* pDisplay);
physicalDevice
The physical device on which to query the display handle.deviceRelativeId
The value of theAdapterRelativeId
property of aDisplayTarget
that is enumerated by aDisplayAdapter
with anId
property matching thedeviceLUID
property of a VkPhysicalDeviceIDProperties forphysicalDevice
.pDisplay
The corresponding VkDisplayKHR handle will be returned here.
If there is no VkDisplayKHR corresponding to deviceRelativeId
on
physicalDevice
, VK_NULL_HANDLE must be returned in
pDisplay
.
Valid Usage (Implicit)
VUID-vkGetWinrtDisplayNV-physicalDevice-parameter
physicalDevice
must be a valid VkPhysicalDevice handle
VUID-vkGetWinrtDisplayNV-pDisplay-parameter
pDisplay
must be a valid pointer to a VkDisplayKHR handle