Acquire” a “DisplayTarget” using a “WinRT” command such as “winrt::Windows::Devices::Display::Core::DisplayManager.TryAcquireTarget()”.
When control is acquired the application has exclusive access to the display until control is released or the application terminates. An application’s attempt to acquire is denied if a different application has already acquired the display.
VK_NV_acquire_winrt_displayVK_EXT_direct_mode_display| Modifier and Type | Field and Description |
|---|---|
| public static final String | VK_NV_ACQUIRE_WINRT_DISPLAY_EXTENSION_NAME
The extension name. |
| public static final int | VK_NV_ACQUIRE_WINRT_DISPLAY_SPEC_VERSION
The extension specification version. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nvkGetWinrtDisplayNV(VkPhysicalDevice physicalDevice, int deviceRelativeId, long pDisplay)
Unsafe version of: |
| public static int | vkAcquireWinrtDisplayNV(VkPhysicalDevice
The physical device the display is on. physicalDevice, long The display the caller wishes to control in Vulkan. display)Acquire access to a VkDisplayKHR. |
| public static int | vkGetWinrtDisplayNV(VkPhysicalDevice
The physical device on which to query the display handle. physicalDevice, int The value of the “AdapterRelativeId” property of a “DisplayTarget” that is enumerated by a “DisplayAdapter” with an “Id” property matching the deviceRelativeId, LongBuffer deviceLUID property of a VkPhysicalDeviceIDProperties for physicalDevice.The corresponding pDisplay)VkDisplayKHR handle will be returned here.Query the VkDisplayKHR corresponding to a WinRT DisplayTarget. |
| public static int | vkGetWinrtDisplayNV(VkPhysicalDevice physicalDevice, int deviceRelativeId, long[] pDisplay)
Array version of: |
| VK_NV_ACQUIRE_WINRT_DISPLAY_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_NV_ACQUIRE_WINRT_DISPLAY_EXTENSION_NAME The extension name. | |
| VK_NV_ACQUIRE_WINRT_DISPLAY_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_NV_ACQUIRE_WINRT_DISPLAY_SPEC_VERSION The extension specification version. | |
| NVAcquireWinrtDisplay | back to summary |
|---|---|
| protected NVAcquireWinrtDisplay() | |
| nvkGetWinrtDisplayNV | back to summary |
|---|---|
| public static int nvkGetWinrtDisplayNV(VkPhysicalDevice physicalDevice, int deviceRelativeId, long pDisplay) Unsafe version of: | |
| vkAcquireWinrtDisplayNV | back to summary |
|---|---|
| public static int vkAcquireWinrtDisplayNV(VkPhysicalDevice physicalDevice, long display) Acquire access to a VkDisplayKHR. C SpecificationTo acquire permission to directly access a display in Vulkan on Windows 10, call:
DescriptionAll permissions necessary to control the display are granted to the Vulkan instance associated with NoteThe Vulkan instance acquires control of a “ NoteOne example of when Windows 10 loses access to a display is when the display is hot-unplugged. NoteOne example of when a display has already been acquired by another entity is when the Windows desktop compositor (DWM) is in control of the display. Beginning with Windows 10 version 2004 it is possible to cause DWM to release a display by using the “ Valid Usage (Implicit)
Return Codes
| |
| vkGetWinrtDisplayNV | back to summary |
|---|---|
| public static int vkGetWinrtDisplayNV(VkPhysicalDevice physicalDevice, int deviceRelativeId, LongBuffer pDisplay) Query the VkDisplayKHR corresponding to a WinRT DisplayTarget. C SpecificationWhen acquiring displays on Windows 10, an application may also wish to enumerate and identify them using a native handle rather than a To determine the
DescriptionIf there is no Valid Usage (Implicit)
Return Codes
| |
| vkGetWinrtDisplayNV | back to summary |
|---|---|
| public static int vkGetWinrtDisplayNV(VkPhysicalDevice physicalDevice, int deviceRelativeId, long[] pDisplay) Array version of:
| |