Package org.lwjgl.vulkan
Class MVKMacosSurface
java.lang.Object
org.lwjgl.vulkan.MVKMacosSurface
The Deprecation by
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.
Deprecation by VK_EXT_metal_surface
The VK_MVK_macos_surface extension is considered deprecated and has been superseded by the VK_EXT_metal_surface extension.
- Name String
VK_MVK_macos_surface- Extension Type
- Instance extension
- Registered Extension Number
- 124
- Revision
- 3
- Extension and Version Dependencies
VK_KHR_surface- Deprecation State
- Deprecated by
VK_EXT_metal_surfaceextension
- Deprecated by
- Contact
- Bill Hollings billhollings
Other Extension Metadata
- Last Modified Date
- 2020-07-31
- IP Status
- No known IP claims.
- Contributors
- Bill Hollings, The Brenwill Workshop Ltd.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnvkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance, long pCreateInfo, long pAllocator, long pSurface) Unsafe version of:CreateMacOSSurfaceMVKstatic intvkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance, VkMacOSSurfaceCreateInfoMVK pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pSurface) Array version of:CreateMacOSSurfaceMVKstatic intvkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance, VkMacOSSurfaceCreateInfoMVK pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pSurface) Create a VkSurfaceKHR object for a macOS NSView.
-
Field Details
-
VK_MVK_MACOS_SURFACE_SPEC_VERSION
public static final int VK_MVK_MACOS_SURFACE_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_MVK_MACOS_SURFACE_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK
public static final int VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVKExtendsVkStructureType.- See Also:
-
-
Method Details
-
nvkCreateMacOSSurfaceMVK
public static int nvkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance, long pCreateInfo, long pAllocator, long pSurface) Unsafe version of:CreateMacOSSurfaceMVK -
vkCreateMacOSSurfaceMVK
public static int vkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance, VkMacOSSurfaceCreateInfoMVK pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pSurface) Create a VkSurfaceKHR object for a macOS NSView.C Specification
To create a
VkSurfaceKHRobject for a macOSNSVieworCAMetalLayer, call:VkResult vkCreateMacOSSurfaceMVK( VkInstance instance, const VkMacOSSurfaceCreateInfoMVK* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);Description
Note
The
vkCreateMacOSSurfaceMVKfunction is considered deprecated and has been superseded byCreateMetalSurfaceEXTfrom theVK_EXT_metal_surfaceextension.Valid Usage (Implicit)
instancemust be a validVkInstancehandlepCreateInfomust be a valid pointer to a validVkMacOSSurfaceCreateInfoMVKstructure- If
pAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacksstructure pSurfacemust be a valid pointer to aVkSurfaceKHRhandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
instance- the instance with which to associate the surface.pCreateInfo- a pointer to aVkMacOSSurfaceCreateInfoMVKstructure containing parameters affecting the creation of the surface object.pAllocator- the allocator used for host memory allocated for the surface object when there is no more specific allocator available (see Memory Allocation).pSurface- a pointer to aVkSurfaceKHRhandle in which the created surface object is returned.
-
vkCreateMacOSSurfaceMVK
public static int vkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance, VkMacOSSurfaceCreateInfoMVK pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pSurface) Array version of:CreateMacOSSurfaceMVK
-