diff options
author | Niklas Haas <git@haasn.dev> | 2022-11-03 16:16:59 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-11-11 13:58:35 +0100 |
commit | 33136c276c550a3a38bb36f512718a5fd2fd82ee (patch) | |
tree | 1b0491a3617cf147807b4a02e7c85665418551e5 /video/out/gpu/video.c | |
parent | ac3966184bc3ab2f475c8b28d4e5d749d07c0177 (diff) | |
download | mpv-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.c')
-rw-r--r-- | video/out/gpu/video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index 65a696cc38..abe5e9333c 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -455,6 +455,7 @@ const struct m_sub_options gl_video_conf = { {"video", BLEND_SUBS_VIDEO})}, {"glsl-shaders", OPT_PATHLIST(user_shaders), .flags = M_OPT_FILE}, {"glsl-shader", OPT_CLI_ALIAS("glsl-shaders-append")}, + {"glsl-shader-opts", OPT_KEYVALUELIST(user_shader_opts)}, {"deband", OPT_FLAG(deband)}, {"deband", OPT_SUBSTRUCT(deband_opts, deband_conf)}, {"sharpen", OPT_FLOAT(unsharp)}, |