Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype VkMacOSSurfaceCreateFlagsMVK = VkMacOSSurfaceCreateFlagsMVK VkFlags
- pattern VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK :: VkStructureType
- pattern VK_MVK_MACOS_SURFACE_SPEC_VERSION :: Integral a => a
- pattern VK_MVK_MACOS_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a
- vkCreateMacOSSurfaceMVK :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkMacOSSurfaceCreateInfoMVK) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult
- data VkMacOSSurfaceCreateInfoMVK = VkMacOSSurfaceCreateInfoMVK {
- vkSType :: VkStructureType
- vkPNext :: Ptr ()
- vkFlags :: VkMacOSSurfaceCreateFlagsMVK
- vkPView :: Ptr ()
Documentation
newtype VkMacOSSurfaceCreateFlagsMVK Source #
Instances
pattern VK_MVK_MACOS_SURFACE_SPEC_VERSION :: Integral a => a Source #
pattern VK_MVK_MACOS_SURFACE_EXTENSION_NAME :: (Eq a, IsString a) => a Source #
vkCreateMacOSSurfaceMVK :: ("instance" ::: VkInstance) -> ("pCreateInfo" ::: Ptr VkMacOSSurfaceCreateInfoMVK) -> ("pAllocator" ::: Ptr VkAllocationCallbacks) -> ("pSurface" ::: Ptr VkSurfaceKHR) -> IO VkResult Source #
vkCreateMacOSSurfaceMVK - Create a VkSurfaceKHR object for a macOS NSView
Parameters
instance
is the instance with which to associate the surface.
pCreateInfo
is a pointer to an instance of theVkMacOSSurfaceCreateInfoMVK
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 validVkMacOSSurfaceCreateInfoMVK
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
,
VkInstance
,
VkMacOSSurfaceCreateInfoMVK
,
VkSurfaceKHR
data VkMacOSSurfaceCreateInfoMVK Source #
VkMacOSSurfaceCreateInfoMVK - Structure specifying parameters of a newly created macOS surface object
Valid Usage
pView
must be a validNSView
and must be backed by aCALayer
instance of typeCAMetalLayer
.
Valid Usage (Implicit)
sType
must beVK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK
pNext
must beNULL
flags
must be0
See Also
VkMacOSSurfaceCreateFlagsMVK
,
VkStructureType
, vkCreateMacOSSurfaceMVK
VkMacOSSurfaceCreateInfoMVK | |
|