Package org.lwjgl.vulkan
Class EXTMetalSurface
- java.lang.Object
-
- org.lwjgl.vulkan.EXTMetalSurface
-
public class EXTMetalSurface extends java.lang.ObjectTheVK_EXT_metal_surfaceextension is an instance extension. It provides a mechanism to create aVkSurfaceKHRobject (defined by theVK_KHR_surfaceextension) 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.StringVK_EXT_METAL_SURFACE_EXTENSION_NAMEThe extension name.static intVK_EXT_METAL_SURFACE_SPEC_VERSIONThe extension specification version.static intVK_STRUCTURE_TYPE_METAL_SURFACE_CREATE_INFO_EXTExtendsVkStructureType.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnvkCreateMetalSurfaceEXT(VkInstance instance, long pCreateInfo, long pAllocator, long pSurface)Unsafe version of:CreateMetalSurfaceEXTstatic intvkCreateMetalSurfaceEXT(VkInstance instance, VkMetalSurfaceCreateInfoEXT pCreateInfo, VkAllocationCallbacks pAllocator, long[] pSurface)Array version of:CreateMetalSurfaceEXTstatic intvkCreateMetalSurfaceEXT(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
VkSurfaceKHRobject for a dlink:CAMetalLayer, call:VkResult vkCreateMetalSurfaceEXT( VkInstance instance, const VkMetalSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);Valid Usage (Implicit)
instancemust be a validVkInstancehandlepCreateInfomust be a valid pointer to a validVkMetalSurfaceCreateInfoEXTstructure- 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 an instance of theVkMetalSurfaceCreateInfoEXTstructure 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 aVkSurfaceKHRhandle 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
-
-