Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data MirConnection
- data MirSurface
- newtype VkMirSurfaceCreateFlagsKHR = VkMirSurfaceCreateFlagsKHR VkFlags
- pattern VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR :: VkStructureType
- pattern VK_KHR_MIR_SURFACE_SPEC_VERSION :: Integral a => a
- pattern VK_KHR_MIR_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCreateMirSurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkMirSurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult
- vkGetPhysicalDeviceMirPresentationSupportKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("queueFamilyIndex" ::: Word32) -> ("connection" ::: Ptr MirConnection) -> IO VkBool32
- data VkMirSurfaceCreateInfoKHR = VkMirSurfaceCreateInfoKHR {}
Documentation
data MirConnection Source #
Opaque data
data MirSurface Source #
Opaque data
newtype VkMirSurfaceCreateFlagsKHR Source #
Instances
pattern VK_KHR_MIR_SURFACE_SPEC_VERSION :: Integral a => a Source #
pattern VK_KHR_MIR_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCreateMirSurfaceKHR :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkMirSurfaceCreateInfoKHR) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult Source #
vkCreateMirSurfaceKHR - Create a
VkSurfaceKHR
object for a
Mir window
Parameters
instance
is the instance to associate the surface with.
pCreateInfo
is a pointer to an instance of theVkMirSurfaceCreateInfoKHR
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 validVkMirSurfaceCreateInfoKHR
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
,
VkMirSurfaceCreateInfoKHR
,
VkSurfaceKHR
vkGetPhysicalDeviceMirPresentationSupportKHR :: ("physicalDevice" ::: VkPhysicalDevice) -> ("queueFamilyIndex" ::: Word32) -> ("connection" ::: Ptr MirConnection) -> IO VkBool32 Source #
vkGetPhysicalDeviceMirPresentationSupportKHR - Query physical device for presentation to Mir
Parameters
physicalDevice
is the physical device.
queueFamilyIndex
is the queue family index.connection
is a pointer to theMirConnection
, and identifies the desired Mir compositor.
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 aMirConnection
value
See Also
data VkMirSurfaceCreateInfoKHR Source #
VkMirSurfaceCreateInfoKHR - Structure specifying parameters of a newly created Mir surface object
Valid Usage
connection
must point to a validMirConnection
.
surface
must point to a validMirSurface
.
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR
pNext
must beNULL
flags
must be0
See Also
VkMirSurfaceCreateFlagsKHR
,
VkStructureType
, vkCreateMirSurfaceKHR
VkMirSurfaceCreateInfoKHR | |
|
Instances
Eq VkMirSurfaceCreateInfoKHR Source # | |
Show VkMirSurfaceCreateInfoKHR Source # | |
showsPrec :: Int -> VkMirSurfaceCreateInfoKHR -> ShowS # show :: VkMirSurfaceCreateInfoKHR -> String # showList :: [VkMirSurfaceCreateInfoKHR] -> ShowS # | |
Storable VkMirSurfaceCreateInfoKHR Source # | |
sizeOf :: VkMirSurfaceCreateInfoKHR -> Int # alignment :: VkMirSurfaceCreateInfoKHR -> Int # peekElemOff :: Ptr VkMirSurfaceCreateInfoKHR -> Int -> IO VkMirSurfaceCreateInfoKHR # pokeElemOff :: Ptr VkMirSurfaceCreateInfoKHR -> Int -> VkMirSurfaceCreateInfoKHR -> IO () # peekByteOff :: Ptr b -> Int -> IO VkMirSurfaceCreateInfoKHR # pokeByteOff :: Ptr b -> Int -> VkMirSurfaceCreateInfoKHR -> IO () # peek :: Ptr VkMirSurfaceCreateInfoKHR -> IO VkMirSurfaceCreateInfoKHR # poke :: Ptr VkMirSurfaceCreateInfoKHR -> VkMirSurfaceCreateInfoKHR -> IO () # |