Path: blob/21.2-virgl/include/vulkan/vulkan_metal.h
4547 views
#ifndef VULKAN_METAL_H_1#define VULKAN_METAL_H_ 123/*4** Copyright 2015-2021 The Khronos Group Inc.5**6** SPDX-License-Identifier: Apache-2.07*/89/*10** This header is generated from the Khronos Vulkan XML API Registry.11**12*/131415#ifdef __cplusplus16extern "C" {17#endif18192021#define VK_EXT_metal_surface 12223#ifdef __OBJC__24@class CAMetalLayer;25#else26typedef void CAMetalLayer;27#endif2829#define VK_EXT_METAL_SURFACE_SPEC_VERSION 130#define VK_EXT_METAL_SURFACE_EXTENSION_NAME "VK_EXT_metal_surface"31typedef VkFlags VkMetalSurfaceCreateFlagsEXT;32typedef struct VkMetalSurfaceCreateInfoEXT {33VkStructureType sType;34const void* pNext;35VkMetalSurfaceCreateFlagsEXT flags;36const CAMetalLayer* pLayer;37} VkMetalSurfaceCreateInfoEXT;3839typedef VkResult (VKAPI_PTR *PFN_vkCreateMetalSurfaceEXT)(VkInstance instance, const VkMetalSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);4041#ifndef VK_NO_PROTOTYPES42VKAPI_ATTR VkResult VKAPI_CALL vkCreateMetalSurfaceEXT(43VkInstance instance,44const VkMetalSurfaceCreateInfoEXT* pCreateInfo,45const VkAllocationCallbacks* pAllocator,46VkSurfaceKHR* pSurface);47#endif4849#ifdef __cplusplus50}51#endif5253#endif545556