headers: Add metal surface support to ICD header
authorLenny Komow <lenny@lunarg.com>
Mon, 16 Sep 2019 22:11:47 +0000 (16:11 -0600)
committerLenny Komow <lenny@lunarg.com>
Wed, 18 Sep 2019 23:54:03 +0000 (17:54 -0600)
include/vulkan/vk_icd.h

index a2d960a..5dff59a 100644 (file)
@@ -89,7 +89,8 @@ typedef enum {
     VK_ICD_WSI_PLATFORM_MACOS,
     VK_ICD_WSI_PLATFORM_IOS,
     VK_ICD_WSI_PLATFORM_DISPLAY,
-    VK_ICD_WSI_PLATFORM_HEADLESS
+    VK_ICD_WSI_PLATFORM_HEADLESS,
+    VK_ICD_WSI_PLATFORM_METAL,
 } VkIcdWsiPlatform;
 
 typedef struct {
@@ -172,4 +173,11 @@ typedef struct {
     VkIcdSurfaceBase base;
 } VkIcdSurfaceHeadless;
 
+#ifdef VK_USE_PLATFORM_METAL_EXT
+typedef struct {
+    VkIcdSurfaceBase base;
+    const CAMetalLayer *pLayer;
+} VkIcdSurfaceMetal;
+#endif // VK_USE_PLATFORM_METAL_EXT
+
 #endif  // VKICD_H