headers: Add metal surface support to ICD header
This commit is contained in:
parent
5b44df19e0
commit
ba091ba6a9
@ -89,7 +89,8 @@ typedef enum {
|
|||||||
VK_ICD_WSI_PLATFORM_MACOS,
|
VK_ICD_WSI_PLATFORM_MACOS,
|
||||||
VK_ICD_WSI_PLATFORM_IOS,
|
VK_ICD_WSI_PLATFORM_IOS,
|
||||||
VK_ICD_WSI_PLATFORM_DISPLAY,
|
VK_ICD_WSI_PLATFORM_DISPLAY,
|
||||||
VK_ICD_WSI_PLATFORM_HEADLESS
|
VK_ICD_WSI_PLATFORM_HEADLESS,
|
||||||
|
VK_ICD_WSI_PLATFORM_METAL,
|
||||||
} VkIcdWsiPlatform;
|
} VkIcdWsiPlatform;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@ -172,4 +173,11 @@ typedef struct {
|
|||||||
VkIcdSurfaceBase base;
|
VkIcdSurfaceBase base;
|
||||||
} VkIcdSurfaceHeadless;
|
} VkIcdSurfaceHeadless;
|
||||||
|
|
||||||
|
#ifdef VK_USE_PLATFORM_METAL_EXT
|
||||||
|
typedef struct {
|
||||||
|
VkIcdSurfaceBase base;
|
||||||
|
const CAMetalLayer *pLayer;
|
||||||
|
} VkIcdSurfaceMetal;
|
||||||
|
#endif // VK_USE_PLATFORM_METAL_EXT
|
||||||
|
|
||||||
#endif // VKICD_H
|
#endif // VKICD_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user