createMacOSSurfaceMVK :: MonadIO io=> Instanceinstanceis the instance with which to associate the surface.-> MacOSSurfaceCreateInfoMVKpCreateInfois a pointer to a MacOSSurfaceCreateInfoMVK structure containing parameters affecting the creation of the surface object.->"allocator"
::: Maybe AllocationCallbackspAllocatoris the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).-> io SurfaceKHR
vkCreateMacOSSurfaceMVK - Create a VkSurfaceKHR object for a macOS NSView
Description
The createMacOSSurfaceMVK function is considered legacy and has been
superseded by
createMetalSurfaceEXT from the
VK_EXT_metal_surface extension.
Valid Usage (Implicit)
instancemust be a valid Instance handle
pCreateInfomust be a valid pointer to a valid MacOSSurfaceCreateInfoMVK structureIf
pAllocatoris notNULL,pAllocatormust be a valid pointer to a valid AllocationCallbacks structurepSurfacemust be a valid pointer to a SurfaceKHR handle
Return Codes
See Also
VK_MVK_macos_surface, AllocationCallbacks, Instance, MacOSSurfaceCreateInfoMVK, SurfaceKHR