public class MVKMacosSurface
extends java.lang.Object
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) that refers to an NSView, the native surface type of macOS, which is underpinned by a dlink:CAMetalLayer, to support rendering to the surface using Apple's Metal framework.
VK_MVK_macos_surfaceVK_KHR_surface| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_MVK_MACOS_SURFACE_EXTENSION_NAME
The extension name.
|
static int |
VK_MVK_MACOS_SURFACE_SPEC_VERSION
The extension specification version.
|
static int |
VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK
Extends
VkStructureType. |
| Modifier and Type | Method and Description |
|---|---|
static int |
nvkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance,
long pCreateInfo,
long pAllocator,
long pSurface)
Unsafe version of:
CreateMacOSSurfaceMVK |
static int |
vkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance,
VkMacOSSurfaceCreateInfoMVK pCreateInfo,
VkAllocationCallbacks pAllocator,
long[] pSurface)
Array version of:
CreateMacOSSurfaceMVK |
static int |
vkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance,
VkMacOSSurfaceCreateInfoMVK pCreateInfo,
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pSurface)
Create a VkSurfaceKHR object for a macOS NSView.
|
public static final int VK_MVK_MACOS_SURFACE_SPEC_VERSION
public static final java.lang.String VK_MVK_MACOS_SURFACE_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_MACOS_SURFACE_CREATE_INFO_MVK
VkStructureType.public static int nvkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance,
long pCreateInfo,
long pAllocator,
long pSurface)
CreateMacOSSurfaceMVKpublic static int vkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance,
VkMacOSSurfaceCreateInfoMVK pCreateInfo,
@Nullable
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pSurface)
To create a VkSurfaceKHR object for a macOS NSView, call:
VkResult vkCreateMacOSSurfaceMVK(
VkInstance instance,
const VkMacOSSurfaceCreateInfoMVK* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkSurfaceKHR* pSurface);
instance must be a valid VkInstance handlepCreateInfo must be a valid pointer to a valid VkMacOSSurfaceCreateInfoMVK structurepAllocator is not NULL, pAllocator must be a valid pointer to a valid VkAllocationCallbacks structurepSurface must be a valid pointer to a VkSurfaceKHR handleinstance - the instance with which to associate the surface.pCreateInfo - a pointer to a VkMacOSSurfaceCreateInfoMVK structure 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 a VkSurfaceKHR handle in which the created surface object is returned.public static int vkCreateMacOSSurfaceMVK(org.lwjgl.vulkan.VkInstance instance,
VkMacOSSurfaceCreateInfoMVK pCreateInfo,
@Nullable
VkAllocationCallbacks pAllocator,
long[] pSurface)
CreateMacOSSurfaceMVKCopyright LWJGL. All Rights Reserved. License terms.