Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Xcb_connection_t
- type Xcb_visualid_t = Word32
- type Xcb_window_t = Word32
- newtype VkXcbSurfaceCreateFlagsKHR = VkXcbSurfaceCreateFlagsKHR VkFlags
- pattern VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR :: VkStructureType
- pattern VK_KHR_XCB_SURFACE_SPEC_VERSION :: Integral a => a
- pattern VK_KHR_XCB_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCreateXcbSurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkXcbSurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult
- vkGetPhysicalDeviceXcbPresentationSupportKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("queueFamilyIndex" ::: Word32) -> ("connection" ::: Ptr Xcb_connection_t) -> ("visual_id" ::: Xcb_visualid_t) -> IO VkBool32
- data VkXcbSurfaceCreateInfoKHR = VkXcbSurfaceCreateInfoKHR {}
Documentation
data Xcb_connection_t Source #
Opaque data
type Xcb_visualid_t = Word32 Source #
type Xcb_window_t = Word32 Source #
newtype VkXcbSurfaceCreateFlagsKHR Source #
Instances
pattern VK_KHR_XCB_SURFACE_SPEC_VERSION :: Integral a => a Source #
pattern VK_KHR_XCB_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCreateXcbSurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkXcbSurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult Source #
vkCreateXcbSurfaceKHR - Create a
VkSurfaceKHR
object for a
X11 window, using the XCB client-side library
Parameters
instance
is the instance to associate the surface with.
pCreateInfo
is a pointer to an instance of theVkXcbSurfaceCreateInfoKHR
structure containing 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 validVkXcbSurfaceCreateInfoKHR
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
,
VkXcbSurfaceCreateInfoKHR
vkGetPhysicalDeviceXcbPresentationSupportKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("queueFamilyIndex" ::: Word32) -> ("connection" ::: Ptr Xcb_connection_t) -> ("visual_id" ::: Xcb_visualid_t) -> IO VkBool32 Source #
vkGetPhysicalDeviceXcbPresentationSupportKHR - Query physical device for presentation to X11 server using XCB
Parameters
physicalDevice
is the physical device.
queueFamilyIndex
is the queue family index.connection
is a pointer to anxcb_connection_t
to the X server.visual_id
is an X11 visual (xcb_visualid_t
).
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
connection
must be a valid pointer to axcb_connection_t
value
See Also
data VkXcbSurfaceCreateInfoKHR Source #
VkXcbSurfaceCreateInfoKHR - Structure specifying parameters of a newly created Xcb surface object
Valid Usage
connection
must point to a valid X11xcb_connection_t
.
window
must be a valid X11xcb_window_t
.
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR
pNext
must beNULL
flags
must be0
See Also
VkStructureType
,
VkXcbSurfaceCreateFlagsKHR
, vkCreateXcbSurfaceKHR
VkXcbSurfaceCreateInfoKHR | |
|
Instances
Eq VkXcbSurfaceCreateInfoKHR Source # | |
Show VkXcbSurfaceCreateInfoKHR Source # | |
showsPrec :: Int -> VkXcbSurfaceCreateInfoKHR -> ShowS # show :: VkXcbSurfaceCreateInfoKHR -> String # showList :: [VkXcbSurfaceCreateInfoKHR] -> ShowS # | |
Storable VkXcbSurfaceCreateInfoKHR Source # | |
sizeOf :: VkXcbSurfaceCreateInfoKHR -> Int # alignment :: VkXcbSurfaceCreateInfoKHR -> Int # peekElemOff :: Ptr VkXcbSurfaceCreateInfoKHR -> Int -> IO VkXcbSurfaceCreateInfoKHR # pokeElemOff :: Ptr VkXcbSurfaceCreateInfoKHR -> Int -> VkXcbSurfaceCreateInfoKHR -> IO () # peekByteOff :: Ptr b -> Int -> IO VkXcbSurfaceCreateInfoKHR # pokeByteOff :: Ptr b -> Int -> VkXcbSurfaceCreateInfoKHR -> IO () # peek :: Ptr VkXcbSurfaceCreateInfoKHR -> IO VkXcbSurfaceCreateInfoKHR # poke :: Ptr VkXcbSurfaceCreateInfoKHR -> VkXcbSurfaceCreateInfoKHR -> IO () # |