diff options
Diffstat (limited to 'video/out/vulkan/common.h')
-rw-r--r-- | video/out/vulkan/common.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/video/out/vulkan/common.h b/video/out/vulkan/common.h index b085fb462c..e75cb228f8 100644 --- a/video/out/vulkan/common.h +++ b/video/out/vulkan/common.h @@ -22,15 +22,18 @@ #if HAVE_WIN32_DESKTOP #define VK_USE_PLATFORM_WIN32_KHR #endif +#if HAVE_COCOA +#define VK_USE_PLATFORM_METAL_EXT +#endif #include <libplacebo/vulkan.h> // Shared struct used to hold vulkan context information struct mpvk_ctx { - struct mp_log *pl_log; - struct pl_context *ctx; - const struct pl_vk_inst *vkinst; - const struct pl_vulkan *vulkan; - const struct pl_gpu *gpu; // points to vulkan->gpu for convenience + pl_log pllog; + pl_vk_inst vkinst; + pl_vulkan vulkan; + pl_gpu gpu; // points to vulkan->gpu for convenience + pl_swapchain swapchain; VkSurfaceKHR surface; }; |