Package org.lwjgl.vulkan
Class EXTMetalSurface
- java.lang.Object
-
- org.lwjgl.vulkan.EXTMetalSurface
-
public class EXTMetalSurface extends java.lang.Object
TheVK_EXT_metal_surface
extension is an instance extension. It provides a mechanism to create aVkSurfaceKHR
object (defined by theVK_KHR_surface
extension) from dlink:CAMetalLayer, which is the native rendering surface of Apple's Metal framework.- Name String
VK_EXT_metal_surface
- Extension Type
- Instance extension
- Registered Extension Number
- 218
- Revision
- 1
- Extension and Version Dependencies
- Requires Vulkan 1.0
- Requires
VK_KHR_surface
- Contact
- Dzmitry Malyshau kvark
- Last Modified Date
- 2018-10-01
- IP Status
- No known IP claims.
- Contributors
- Dzmitry Malyshau, Mozilla Corp.
-
-
Field Summary
Fields Modifier and Type Field 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
ExtendsVkStructureType
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
nvkCreateMetalSurfaceEXT(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)
Unsafe version of:CreateMetalSurfaceEXT
static int
vkCreateMetalSurfaceEXT(VkInstance instance, VkMetalSurfaceCreateInfoEXT pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of:CreateMetalSurfaceEXT
static int
vkCreateMetalSurfaceEXT(VkInstance instance, VkMetalSurfaceCreateInfoEXT pCreateInfo, VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)
Create a VkSurfaceKHR object for CAMetalLayer.
-
-
-
Field Detail
-
VK_EXT_METAL_SURFACE_SPEC_VERSION
public static final int VK_EXT_METAL_SURFACE_SPEC_VERSION
The extension specification version.- See Also:
- Constant Field Values
-
VK_EXT_METAL_SURFACE_EXTENSION_NAME
public static final java.lang.String VK_EXT_METAL_SURFACE_EXTENSION_NAME
The extension name.- See Also:
- Constant Field Values
-
VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT
public static final int VK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXT
ExtendsVkStructureType
.- See Also:
- Constant Field Values
-
-
Method Detail
-
nvkCreateMetalSurfaceEXT
public static int nvkCreateMetalSurfaceEXT(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)
Unsafe version of:CreateMetalSurfaceEXT
-
vkCreateMetalSurfaceEXT
public static int vkCreateMetalSurfaceEXT(VkInstance instance, VkMetalSurfaceCreateInfoEXT pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, java.nio.LongBuffer pSurface)
Create a VkSurfaceKHR object for CAMetalLayer.C Specification
To create a
VkSurfaceKHR
object for a dlink:CAMetalLayer, call:VkResult vkCreateMetalSurfaceEXT( VkInstance instance, const VkMetalSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
Valid Usage (Implicit)
instance
must be a validVkInstance
handlepCreateInfo
must be a valid pointer to a validVkMetalSurfaceCreateInfoEXT
structure- If
pAllocator
is notNULL
,pAllocator
must be a valid pointer to a validVkAllocationCallbacks
structure pSurface
must be a valid pointer to aVkSurfaceKHR
handle
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 an instance of theVkMetalSurfaceCreateInfoEXT
structure containing the 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
- points to aVkSurfaceKHR
handle in which the created surface object is returned.
-
vkCreateMetalSurfaceEXT
public static int vkCreateMetalSurfaceEXT(VkInstance instance, VkMetalSurfaceCreateInfoEXT pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pSurface)
Array version of:CreateMetalSurfaceEXT
-
-