| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.Vulkan.Extensions.VK_KHR_xcb_surface
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 #
Constructors
| VkXcbSurfaceCreateFlagsKHR VkFlags |
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
instanceis the instance to associate the surface with.
pCreateInfois a pointer to an instance of theVkXcbSurfaceCreateInfoKHRstructure containing 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 validVkXcbSurfaceCreateInfoKHRstructure- 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,
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
physicalDeviceis the physical device.
queueFamilyIndexis the queue family index.connectionis a pointer to anxcb_connection_tto the X server.visual_idis an X11 visual (xcb_visualid_t).
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
connectionmust be a valid pointer to axcb_connection_tvalue
See Also
data VkXcbSurfaceCreateInfoKHR Source #
VkXcbSurfaceCreateInfoKHR - Structure specifying parameters of a newly created Xcb surface object
Valid Usage
connectionmust point to a valid X11xcb_connection_t.
windowmust be a valid X11xcb_window_t.
Valid Usage (Implicit)
sTypemust beVK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR
pNextmust beNULLflagsmust be0
See Also
VkStructureType,
VkXcbSurfaceCreateFlagsKHR, vkCreateXcbSurfaceKHR
Constructors
| VkXcbSurfaceCreateInfoKHR | |
Fields
| |
Instances
| Eq VkXcbSurfaceCreateInfoKHR Source # | |
Methods (==) :: VkXcbSurfaceCreateInfoKHR -> VkXcbSurfaceCreateInfoKHR -> Bool # (/=) :: VkXcbSurfaceCreateInfoKHR -> VkXcbSurfaceCreateInfoKHR -> Bool # | |
| Show VkXcbSurfaceCreateInfoKHR Source # | |
Methods showsPrec :: Int -> VkXcbSurfaceCreateInfoKHR -> ShowS # show :: VkXcbSurfaceCreateInfoKHR -> String # showList :: [VkXcbSurfaceCreateInfoKHR] -> ShowS # | |
| Storable VkXcbSurfaceCreateInfoKHR Source # | |
Methods 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 () # | |