public class EXTMetalSurface
extends java.lang.Object
VK_EXT_metal_surface extension is an instance extension. It provides a mechanism to create a VkSurfaceKHR object (defined by the VK_KHR_surface extension) from dlink:CAMetalLayer, which is the native rendering surface of Apple's Metal framework.
VK_EXT_metal_surfaceVK_KHR_surface| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VK_EXT_METAL_SURFACE_EXTENSION_NAME
The extension name.
|
static int |
VK_EXT_METAL_SURFACE_SPEC_VERSION
The extension specification version.
|
static int |
VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT
Extends
VkStructureType. |
| Modifier and Type | Method and Description |
|---|---|
static int |
nvkCreateMetalSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
long pCreateInfo,
long pAllocator,
long pSurface)
Unsafe version of:
CreateMetalSurfaceEXT |
static int |
vkCreateMetalSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
VkMetalSurfaceCreateInfoEXT pCreateInfo,
VkAllocationCallbacks pAllocator,
long[] pSurface)
Array version of:
CreateMetalSurfaceEXT |
static int |
vkCreateMetalSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
VkMetalSurfaceCreateInfoEXT pCreateInfo,
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pSurface)
Create a VkSurfaceKHR object for CAMetalLayer.
|
public static final int VK_EXT_METAL_SURFACE_SPEC_VERSION
public static final java.lang.String VK_EXT_METAL_SURFACE_EXTENSION_NAME
public static final int VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT
VkStructureType.public static int nvkCreateMetalSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
long pCreateInfo,
long pAllocator,
long pSurface)
CreateMetalSurfaceEXTpublic static int vkCreateMetalSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
VkMetalSurfaceCreateInfoEXT pCreateInfo,
@Nullable
VkAllocationCallbacks pAllocator,
java.nio.LongBuffer pSurface)
To create a VkSurfaceKHR object for a dlink:CAMetalLayer, call:
VkResult vkCreateMetalSurfaceEXT(
VkInstance instance,
const VkMetalSurfaceCreateInfoEXT* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkSurfaceKHR* pSurface);
instance must be a valid VkInstance handlepCreateInfo must be a valid pointer to a valid VkMetalSurfaceCreateInfoEXT 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 VkMetalSurfaceCreateInfoEXT structure specifying 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 vkCreateMetalSurfaceEXT(org.lwjgl.vulkan.VkInstance instance,
VkMetalSurfaceCreateInfoEXT pCreateInfo,
@Nullable
VkAllocationCallbacks pAllocator,
long[] pSurface)
CreateMetalSurfaceEXTCopyright LWJGL. All Rights Reserved. License terms.