| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_EXT_acquire_xlib_display
Synopsis
- type RROutput = Word64
- pattern VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION :: Integral a => a
- pattern VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkAcquireXlibDisplayEXT :: ("physicalDevice" ::: VkPhysicalDevice) -> ("dpy" ::: Ptr Display) -> ("display" ::: VkDisplayKHR) -> IO VkResult
- vkGetRandROutputDisplayEXT :: ("physicalDevice" ::: VkPhysicalDevice) -> ("dpy" ::: Ptr Display) -> ("rrOutput" ::: RROutput) -> ("pDisplay" ::: Ptr VkDisplayKHR) -> IO VkResult
Documentation
pattern VK_EXT_ACQUIRE_XLIB_DISPLAY_SPEC_VERSION :: Integral a => a Source #
pattern VK_EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkAcquireXlibDisplayEXT :: ("physicalDevice" ::: VkPhysicalDevice) -> ("dpy" ::: Ptr Display) -> ("display" ::: VkDisplayKHR) -> IO VkResult Source #
vkAcquireXlibDisplayEXT - Acquire access to a VkDisplayKHR using Xlib
Parameters
physicalDeviceThe physical device the display is on.
dpyA connection to the X11 server that currently ownsdisplay.displayThe display the caller wishes to control in Vulkan.
Description
All permissions necessary to control the display are granted to the
Vulkan instance associated with physicalDevice until the display is
released or the X11 connection specified by dpy is terminated.
Permission to access the display may be temporarily revoked during
periods when the X11 server from which control was acquired itself
looses access to display. During such periods, operations which
require access to the display must fail with an approriate error code.
If the X11 server associated with dpy does not own display, or if
permission to access it has already been acquired by another entity, the
call must return the error code VK_ERROR_INITIALIZATION_FAILED.
Note
One example of when an X11 server loses access to a display is when it loses ownership of its virtual terminal.
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandle
dpymust be a valid pointer to aDisplayvaluedisplaymust be a validVkDisplayKHRhandle
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_INITIALIZATION_FAILED
See Also
vkGetRandROutputDisplayEXT :: ("physicalDevice" ::: VkPhysicalDevice) -> ("dpy" ::: Ptr Display) -> ("rrOutput" ::: RROutput) -> ("pDisplay" ::: Ptr VkDisplayKHR) -> IO VkResult Source #
vkGetRandROutputDisplayEXT - Query the VkDisplayKHR corresponding to an X11 RandR Output
Parameters
physicalDeviceThe physical device to query the display handle on.
dpyA connection to the X11 server from whichrrOutputwas queried.rrOutputAn X11 RandR output ID.pDisplayThe correspondingVkDisplayKHRhandle will be returned here.
Description
If there is no VkDisplayKHR
corresponding to rrOutput on physicalDevice,
VK_NULL_HANDLE must be returned in
pDisplay.
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandle
dpymust be a valid pointer to aDisplayvaluepDisplaymust be a valid pointer to aVkDisplayKHRhandle
Return Codes
[Success]
- VK_SUCCESS