| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_KHR_xlib_surface
Synopsis
- newtype Display = Display (Ptr Display)
- type VisualID = Word64
- type Window = Word64
- newtype VkXlibSurfaceCreateFlagsKHR = VkXlibSurfaceCreateFlagsKHR VkFlags
- pattern VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR :: VkStructureType
- pattern VK_KHR_XLIB_SURFACE_SPEC_VERSION :: Integral a => a
- pattern VK_KHR_XLIB_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCreateXlibSurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkXlibSurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult
- vkGetPhysicalDeviceXlibPresentationSupportKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("queueFamilyIndex" ::: Word32) -> ("dpy" ::: Ptr Display) -> ("visualID" ::: VisualID) -> IO VkBool32
- data VkXlibSurfaceCreateInfoKHR = VkXlibSurfaceCreateInfoKHR {}
Documentation
newtype VkXlibSurfaceCreateFlagsKHR Source #
Constructors
| VkXlibSurfaceCreateFlagsKHR VkFlags |
Instances
pattern VK_KHR_XLIB_SURFACE_SPEC_VERSION :: Integral a => a Source #
pattern VK_KHR_XLIB_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCreateXlibSurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkXlibSurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult Source #
vkCreateXlibSurfaceKHR - Create a
VkSurfaceKHR object for an
X11 window, using the Xlib client-side library
Parameters
instanceis the instance to associate the surface with.
pCreateInfois a pointer to an instance of theVkXlibSurfaceCreateInfoKHRstructure containing the parameters affecting the creation of the surface object.pAllocatoris the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurfacepoints to aVkSurfaceKHRhandle in which the created surface object is returned.
Valid Usage (Implicit)
instancemust be a validVkInstancehandle
pCreateInfomust be a valid pointer to a validVkXlibSurfaceCreateInfoKHRstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure pSurfacemust be a valid pointer to aVkSurfaceKHRhandle
Return Codes
[Success]
- VK_SUCCESS
[Failure]
- VK_ERROR_OUT_OF_HOST_MEMORY
VK_ERROR_OUT_OF_DEVICE_MEMORY
See Also
VkAllocationCallbacks,
VkInstance,
VkSurfaceKHR,
VkXlibSurfaceCreateInfoKHR
vkGetPhysicalDeviceXlibPresentationSupportKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("queueFamilyIndex" ::: Word32) -> ("dpy" ::: Ptr Display) -> ("visualID" ::: VisualID) -> IO VkBool32 Source #
vkGetPhysicalDeviceXlibPresentationSupportKHR - Query physical device for presentation to X11 server using Xlib
Parameters
physicalDeviceis the physical device.
queueFamilyIndexis the queue family index.dpyis a pointer to an XlibDisplayconnection to the server.visualIdis an X11 visual (VisualID).
Description
This platform-specific function can be called prior to creating a surface.
Valid Usage
queueFamilyIndexmust be less thanpQueueFamilyPropertyCountreturned byvkGetPhysicalDeviceQueueFamilyPropertiesfor the givenphysicalDevice
Valid Usage (Implicit)
physicalDevicemust be a validVkPhysicalDevicehandle
dpymust be a valid pointer to aDisplayvalue
See Also
data VkXlibSurfaceCreateInfoKHR Source #
VkXlibSurfaceCreateInfoKHR - Structure specifying parameters of a newly created Xlib surface object
Valid Usage
dpymust point to a valid XlibDisplay.
windowmust be a valid XlibWindow.
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR
pNextmust beNULLflagsmust be0
See Also
VkStructureType,
VkXlibSurfaceCreateFlagsKHR, vkCreateXlibSurfaceKHR
Constructors
| VkXlibSurfaceCreateInfoKHR | |
Fields
| |