Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype VkIOSSurfaceCreateFlagsMVK = VkIOSSurfaceCreateFlagsMVK VkFlags
- pattern VK_STRUCTURE_TYPE_IOS_SURFACE_CREATE_INFO_MVK :: VkStructureType
- pattern VK_MVK_IOS_SURFACE_SPEC_VERSION :: Integral a => a
- pattern VK_MVK_IOS_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCreateIOSSurfaceMVK :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkIOSSurfaceCreateInfoMVK) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult
- data VkIOSSurfaceCreateInfoMVK = VkIOSSurfaceCreateInfoMVK {
- vkSType :: VkStructureType
- vkPNext :: Ptr ()
- vkFlags :: VkIOSSurfaceCreateFlagsMVK
- vkPView :: Ptr ()
Documentation
newtype VkIOSSurfaceCreateFlagsMVK Source #
Instances
pattern VK_MVK_IOS_SURFACE_SPEC_VERSION :: Integral a => a Source #
pattern VK_MVK_IOS_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCreateIOSSurfaceMVK :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkIOSSurfaceCreateInfoMVK) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult Source #
vkCreateIOSSurfaceMVK - Create a VkSurfaceKHR object for an iOS UIView
Parameters
instance
is the instance with which to associate the surface.
pCreateInfo
is a pointer to an instance of theVkIOSSurfaceCreateInfoMVK
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 validVkIOSSurfaceCreateInfoMVK
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
VK_ERROR_NATIVE_WINDOW_IN_USE_KHR
See Also
VkAllocationCallbacks
,
VkIOSSurfaceCreateInfoMVK
,
VkInstance
,
VkSurfaceKHR
data VkIOSSurfaceCreateInfoMVK Source #
VkIOSSurfaceCreateInfoMVK - Structure specifying parameters of a newly created iOS surface object
Valid Usage
pView
must be a validUIView
and must be backed by aCALayer
instance of typeCAMetalLayer
.
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_IOS_SURFACE_CREATE_INFO_MVK
pNext
must beNULL
flags
must be0
See Also
VkIOSSurfaceCreateFlagsMVK
,
VkStructureType
, vkCreateIOSSurfaceMVK
VkIOSSurfaceCreateInfoMVK | |
|
Instances
Eq VkIOSSurfaceCreateInfoMVK Source # | |
Show VkIOSSurfaceCreateInfoMVK Source # | |
showsPrec :: Int -> VkIOSSurfaceCreateInfoMVK -> ShowS # show :: VkIOSSurfaceCreateInfoMVK -> String # showList :: [VkIOSSurfaceCreateInfoMVK] -> ShowS # | |
Storable VkIOSSurfaceCreateInfoMVK Source # | |
sizeOf :: VkIOSSurfaceCreateInfoMVK -> Int # alignment :: VkIOSSurfaceCreateInfoMVK -> Int # peekElemOff :: Ptr VkIOSSurfaceCreateInfoMVK -> Int -> IO VkIOSSurfaceCreateInfoMVK # pokeElemOff :: Ptr VkIOSSurfaceCreateInfoMVK -> Int -> VkIOSSurfaceCreateInfoMVK -> IO () # peekByteOff :: Ptr b -> Int -> IO VkIOSSurfaceCreateInfoMVK # pokeByteOff :: Ptr b -> Int -> VkIOSSurfaceCreateInfoMVK -> IO () # peek :: Ptr VkIOSSurfaceCreateInfoMVK -> IO VkIOSSurfaceCreateInfoMVK # poke :: Ptr VkIOSSurfaceCreateInfoMVK -> VkIOSSurfaceCreateInfoMVK -> IO () # |