Demo application that renders a triangle using Vulkan on the Pixel 3A.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

vulkan_metal.h 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef VULKAN_METAL_H_
  2. #define VULKAN_METAL_H_ 1
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** Copyright (c) 2015-2019 The Khronos Group Inc.
  8. **
  9. ** Licensed under the Apache License, Version 2.0 (the "License");
  10. ** you may not use this file except in compliance with the License.
  11. ** You may obtain a copy of the License at
  12. **
  13. ** http://www.apache.org/licenses/LICENSE-2.0
  14. **
  15. ** Unless required by applicable law or agreed to in writing, software
  16. ** distributed under the License is distributed on an "AS IS" BASIS,
  17. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. ** See the License for the specific language governing permissions and
  19. ** limitations under the License.
  20. */
  21. /*
  22. ** This header is generated from the Khronos Vulkan XML API Registry.
  23. **
  24. */
  25. #define VK_EXT_metal_surface 1
  26. #ifdef __OBJC__
  27. @class CAMetalLayer;
  28. #else
  29. typedef void CAMetalLayer;
  30. #endif
  31. #define VK_EXT_METAL_SURFACE_SPEC_VERSION 1
  32. #define VK_EXT_METAL_SURFACE_EXTENSION_NAME "VK_EXT_metal_surface"
  33. typedef VkFlags VkMetalSurfaceCreateFlagsEXT;
  34. typedef struct VkMetalSurfaceCreateInfoEXT {
  35. VkStructureType sType;
  36. const void* pNext;
  37. VkMetalSurfaceCreateFlagsEXT flags;
  38. const CAMetalLayer* pLayer;
  39. } VkMetalSurfaceCreateInfoEXT;
  40. typedef VkResult (VKAPI_PTR *PFN_vkCreateMetalSurfaceEXT)(VkInstance instance, const VkMetalSurfaceCreateInfoEXT* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
  41. #ifndef VK_NO_PROTOTYPES
  42. VKAPI_ATTR VkResult VKAPI_CALL vkCreateMetalSurfaceEXT(
  43. VkInstance instance,
  44. const VkMetalSurfaceCreateInfoEXT* pCreateInfo,
  45. const VkAllocationCallbacks* pAllocator,
  46. VkSurfaceKHR* pSurface);
  47. #endif
  48. #ifdef __cplusplus
  49. }
  50. #endif
  51. #endif