summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_application.h
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2023-09-30 16:01:04 +0200
committerder richter <der.richter@gmx.de>2023-10-14 18:39:56 +0200
commit78d43740f52db817d98bcf24fb30a76ab6fa13ff (patch)
tree4e50dcd3872d7935ca55ca547e8d26502e2c1bfc /osdep/macosx_application.h
parentbc66de2834dcf69d4d05163350a219d2fbc47a56 (diff)
downloadmpv-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 'osdep/macosx_application.h')
-rw-r--r--osdep/macosx_application.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/osdep/macosx_application.h b/osdep/macosx_application.h
index d95940fd31..753b9f033f 100644
--- a/osdep/macosx_application.h
+++ b/osdep/macosx_application.h
@@ -26,6 +26,12 @@ enum {
FRAME_WHOLE,
};
+enum {
+ RENDER_TIMER_CALLBACK = 0,
+ RENDER_TIMER_PRECISE,
+ RENDER_TIMER_SYSTEM,
+};
+
struct macos_opts {
int macos_title_bar_style;
int macos_title_bar_appearance;
@@ -35,6 +41,7 @@ struct macos_opts {
bool macos_force_dedicated_gpu;
int macos_app_activation_policy;
int macos_geometry_calculation;
+ int macos_render_timer;
int cocoa_cb_sw_renderer;
bool cocoa_cb_10bit_context;
};