diff options
author | der richter <der.richter@gmx.de> | 2023-09-30 16:01:04 +0200 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2023-10-14 18:39:56 +0200 |
commit | 78d43740f52db817d98bcf24fb30a76ab6fa13ff (patch) | |
tree | 4e50dcd3872d7935ca55ca547e8d26502e2c1bfc /video/out/vulkan/common.h | |
parent | bc66de2834dcf69d4d05163350a219d2fbc47a56 (diff) | |
download | mpv-78d43740f52db817d98bcf24fb30a76ab6fa13ff.tar.bz2 mpv-78d43740f52db817d98bcf24fb30a76ab6fa13ff.tar.xz |
vo_gpu/vo_gpu_next: add vulkan support for macOS
add support for vulkan through metal and a translation layer like
MoltenVK. also add the possibility to use different render timing modes
for testing.
i still consider this experimental atm.
Diffstat (limited to 'video/out/vulkan/common.h')
-rw-r--r-- | video/out/vulkan/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/vulkan/common.h b/video/out/vulkan/common.h index 85e6c50f4b..d006942d41 100644 --- a/video/out/vulkan/common.h +++ b/video/out/vulkan/common.h @@ -22,6 +22,10 @@ #if HAVE_WIN32_DESKTOP #define VK_USE_PLATFORM_WIN32_KHR #endif +#if HAVE_COCOA +#define VK_USE_PLATFORM_MACOS_MVK +#define VK_USE_PLATFORM_METAL_EXT +#endif #include <libplacebo/vulkan.h> |