VK_MVK_macos_surface extension is an instance extension. It provides a mechanism to create a VkSurfaceKHR object (defined by the VK_KHR_surface extension) based on an NSView, the native surface type of macOS, which is underpinned by a CAMetalLayer, to support rendering to the surface using Apple’s Metal framework.
VK_EXT_metal_surfaceThe VK_MVK_macos_surface extension is considered deprecated and has been superseded by the VK_EXT_metal_surface extension.
VK_MVK_macos_surfaceVK_KHR_surfaceVK_EXT_metal_surface extension| Modifier and Type | Field and Description |
|---|---|
| public static final String | VK_MVK_MACOS_SURFACE_EXTENSION_NAME
The extension name. |
| public static final int | VK_MVK_MACOS_SURFACE_SPEC_VERSION
The extension specification version. |
| public static final int | VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK
Extends |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nvkCreateMacOSSurfaceMVK(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)
Unsafe version of: |
| public static int | vkCreateMacOSSurfaceMVK(VkInstance
the instance with which to associate the surface. instance, VkMacOSSurfaceCreateInfoMVK a pointer to a pCreateInfo, VkAllocationCallbacks VkMacOSSurfaceCreateInfoMVK structure containing parameters affecting the creation of the surface object.the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation). pAllocator, LongBuffer a pointer to a pSurface)VkSurfaceKHR handle in which the created surface object is returned.Create a VkSurfaceKHR object for a macOS NSView. |
| public static int | vkCreateMacOSSurfaceMVK(VkInstance instance, VkMacOSSurfaceCreateInfoMVK pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of: |
| VK_MVK_MACOS_SURFACE_EXTENSION_NAME | back to summary |
|---|---|
| public static final String VK_MVK_MACOS_SURFACE_EXTENSION_NAME The extension name. | |
| VK_MVK_MACOS_SURFACE_SPEC_VERSION | back to summary |
|---|---|
| public static final int VK_MVK_MACOS_SURFACE_SPEC_VERSION The extension specification version. | |
| VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK | back to summary |
|---|---|
| public static final int VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK Extends | |
| MVKMacosSurface | back to summary |
|---|---|
| protected MVKMacosSurface() | |
| nvkCreateMacOSSurfaceMVK | back to summary |
|---|---|
| public static int nvkCreateMacOSSurfaceMVK(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface) Unsafe version of: | |
| vkCreateMacOSSurfaceMVK | back to summary |
|---|---|
| public static int vkCreateMacOSSurfaceMVK(VkInstance instance, VkMacOSSurfaceCreateInfoMVK pCreateInfo, VkAllocationCallbacks pAllocator, LongBuffer pSurface) Create a VkSurfaceKHR object for a macOS NSView. C SpecificationTo create a
Valid Usage (Implicit)
Return Codes
See Also
| |
| vkCreateMacOSSurfaceMVK | back to summary |
|---|---|
| public static int vkCreateMacOSSurfaceMVK(VkInstance instance, VkMacOSSurfaceCreateInfoMVK pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface) Array version of:
| |