aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLenny Komow <[email protected]>2019-09-16 16:11:47 -0600
committerLenny Komow <[email protected]>2019-09-18 17:54:03 -0600
commitba091ba6a947f79623b28fe8bfccdce1ab9fa467 (patch)
tree9b250e2fc4b4cb6d6559ef6005f120d70cf2dd9b
parent5b44df19e040fca0048ab30c553a8c2d2cb9623e (diff)
downloadVulkan-Headers-ba091ba6a947f79623b28fe8bfccdce1ab9fa467.tar.gz
Vulkan-Headers-ba091ba6a947f79623b28fe8bfccdce1ab9fa467.zip
headers: Add metal surface support to ICD header
-rw-r--r--include/vulkan/vk_icd.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/vulkan/vk_icd.h b/include/vulkan/vk_icd.h
index a2d960a..5dff59a 100644
--- a/include/vulkan/vk_icd.h
+++ b/include/vulkan/vk_icd.h
@@ -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