Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 #
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
instance
is the instance to associate the surface with.
pCreateInfo
is a pointer to an instance of theVkXlibSurfaceCreateInfoKHR
structure containing the parameters affecting the creation of the surface object.pAllocator
is the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurface
points to aVkSurfaceKHR
handle in which the created surface object is returned.
Valid Usage (Implicit)
instance
must be a validVkInstance
handle
pCreateInfo
must be a valid pointer to a validVkXlibSurfaceCreateInfoKHR
structure- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validVkAllocationCallbacks
structure pSurface
must be a valid pointer to aVkSurfaceKHR
handle
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
physicalDevice
is the physical device.
queueFamilyIndex
is the queue family index.dpy
is a pointer to an XlibDisplay
connection to the server.visualId
is an X11 visual (VisualID
).
Description
This platform-specific function can be called prior to creating a surface.
Valid Usage
queueFamilyIndex
must be less thanpQueueFamilyPropertyCount
returned byvkGetPhysicalDeviceQueueFamilyProperties
for the givenphysicalDevice
Valid Usage (Implicit)
physicalDevice
must be a validVkPhysicalDevice
handle
dpy
must be a valid pointer to aDisplay
value
See Also
data VkXlibSurfaceCreateInfoKHR Source #
VkXlibSurfaceCreateInfoKHR - Structure specifying parameters of a newly created Xlib surface object
Valid Usage
dpy
must point to a valid XlibDisplay
.
window
must be a valid XlibWindow
.
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR
pNext
must beNULL
flags
must be0
See Also
VkStructureType
,
VkXlibSurfaceCreateFlagsKHR
, vkCreateXlibSurfaceKHR
VkXlibSurfaceCreateInfoKHR | |
|