vkCreateMacOSSurfaceMVK(3)
C Specification
To create aVkSurfaceKHR object for a macOSNSView orCAMetalLayer, call:
// Provided by VK_MVK_macos_surfaceVkResult vkCreateMacOSSurfaceMVK( VkInstance instance, const VkMacOSSurfaceCreateInfoMVK* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);Parameters
instanceis the instance with which to associate the surface.pCreateInfois a pointer to aVkMacOSSurfaceCreateInfoMVKstructure containing parameters affecting the creation of the surfaceobject.pAllocatoris the allocator used for host memory allocated for thesurface object when there is no more specific allocator available (seeMemory Allocation).pSurfaceis a pointer to aVkSurfaceKHR handle in which thecreated surface object is returned.
Description
The |
VUID-vkCreateMacOSSurfaceMVK-instance-parameter
instancemust be a validVkInstance handleVUID-vkCreateMacOSSurfaceMVK-pCreateInfo-parameter
pCreateInfomust be a valid pointer to a validVkMacOSSurfaceCreateInfoMVK structureVUID-vkCreateMacOSSurfaceMVK-pAllocator-parameter
IfpAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacks structureVUID-vkCreateMacOSSurfaceMVK-pSurface-parameter
pSurfacemust be a valid pointer to aVkSurfaceKHR handle
Document Notes
For more information, see theVulkan Specification.
This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.