vulkan-3.0.0.0: Bindings to the Vulkan graphics API.

Safe HaskellNone
LanguageHaskell2010

Graphics.Vulkan.Extensions.VK_EXT_acquire_xlib_display

Synopsis

Documentation

acquireXlibDisplayEXT :: PhysicalDevice -> ("dpy" ::: Ptr Display) -> DisplayKHR -> IO () Source #

vkAcquireXlibDisplayEXT - Acquire access to a VkDisplayKHR using Xlib

Parameters

  • dpy A connection to the X11 server that currently owns Display.
  • Display The 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 loses 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 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.

Return Codes

Success
Failure

See Also

DisplayKHR, PhysicalDevice

getRandROutputDisplayEXT :: PhysicalDevice -> ("dpy" ::: Ptr Display) -> RROutput -> IO DisplayKHR Source #

vkGetRandROutputDisplayEXT - Query the VkDisplayKHR corresponding to an X11 RandR Output

Parameters

  • dpy A connection to the X11 server from which rrOutput was queried.
  • rrOutput An X11 RandR output ID.
  • pDisplay The corresponding DisplayKHR handle will be returned here.

Description

If there is no DisplayKHR corresponding to rrOutput on PhysicalDevice, NULL_HANDLE must be returned in pDisplay.

Return Codes

Success

See Also

DisplayKHR, PhysicalDevice

type EXT_ACQUIRE_XLIB_DISPLAY_EXTENSION_NAME = "VK_EXT_acquire_xlib_display" Source #

newtype DisplayKHR Source #

Constructors

DisplayKHR Word64 

type Display = Ptr () Source #