1 #ifndef VULKAN_METAL_H_
2 #define VULKAN_METAL_H_ 1
5 ** Copyright (c) 2015-2020 The Khronos Group Inc.
7 ** SPDX-License-Identifier: Apache-2.0
11 ** This header is generated from the Khronos Vulkan XML API Registry.
22 #define VK_EXT_metal_surface 1
27 typedef void CAMetalLayer
;
30 #define VK_EXT_METAL_SURFACE_SPEC_VERSION 1
31 #define VK_EXT_METAL_SURFACE_EXTENSION_NAME "VK_EXT_metal_surface"
32 typedef VkFlags VkMetalSurfaceCreateFlagsEXT
;
33 typedef struct VkMetalSurfaceCreateInfoEXT
{
34 VkStructureType sType
;
36 VkMetalSurfaceCreateFlagsEXT flags
;
37 const CAMetalLayer
* pLayer
;
38 } VkMetalSurfaceCreateInfoEXT
;
40 typedef VkResult (VKAPI_PTR
*PFN_vkCreateMetalSurfaceEXT
)(VkInstance instance
, const VkMetalSurfaceCreateInfoEXT
* pCreateInfo
, const VkAllocationCallbacks
* pAllocator
, VkSurfaceKHR
* pSurface
);
42 #ifndef VK_NO_PROTOTYPES
43 VKAPI_ATTR VkResult VKAPI_CALL
vkCreateMetalSurfaceEXT(
45 const VkMetalSurfaceCreateInfoEXT
* pCreateInfo
,
46 const VkAllocationCallbacks
* pAllocator
,
47 VkSurfaceKHR
* pSurface
);