summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/video.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2022-11-03 16:16:59 +0100
committerNiklas Haas <github-daiK1o@haasn.dev>2022-11-11 13:58:35 +0100
commit33136c276c550a3a38bb36f512718a5fd2fd82ee (patch)
tree1b0491a3617cf147807b4a02e7c85665418551e5 /video/out/gpu/video.h
parentac3966184bc3ab2f475c8b28d4e5d749d07c0177 (diff)
downloadmpv-33136c276c550a3a38bb36f512718a5fd2fd82ee.tar.bz2
mpv-33136c276c550a3a38bb36f512718a5fd2fd82ee.tar.xz
vo_gpu_next: add tunable shader parameters
This is a very simple but easy way of doing it. Ideally, it would be nice if we could also add some sort of introspection about shader parameters at runtime, ideally exposing the entire list of parameters as a custom property dict. But that is a lot of effort for dubious gain. It's worth noting that, as currently implemented, re-setting `glsl-shader-opts` to a new value doesn't reset back previously mutated values to their defaults.
Diffstat (limited to 'video/out/gpu/video.h')
-rw-r--r--video/out/gpu/video.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gpu/video.h b/video/out/gpu/video.h
index 7637710fa7..30abd972f9 100644
--- a/video/out/gpu/video.h
+++ b/video/out/gpu/video.h
@@ -162,6 +162,7 @@ struct gl_video_opts {
float interpolation_threshold;
int blend_subs;
char **user_shaders;
+ char **user_shader_opts;
int deband;
struct deband_opts *deband_opts;
float unsharp;