summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2016-06-08 15:05:28 +0200
committerwm4 <wm4@nowhere>2016-06-08 20:50:19 +0200
commit54c48bd80120a3085e6d23f7cf6124b0657436e7 (patch)
treed060ec1b942d4d544597c1e7c5fa5898d921edb1 /options
parenta15181e5df5ba8a21e6a5b953213f4a72690c47f (diff)
downloadmpv-54c48bd80120a3085e6d23f7cf6124b0657436e7.tar.bz2
mpv-54c48bd80120a3085e6d23f7cf6124b0657436e7.tar.xz
vo_opengl: make user hook passes optional
User hooks can now use an extra WHEN expression to specify when the shader should be run. For example, this can be used to only run a chroma scaling shader `WHEN CHROMA.w LUMA.w <`. There's a slight semantics change to user shaders: When trying to bind a texture that does not exist, a shader will now be silently skipped (similar to when the condition is false) instead of generating an error. This allows shader stages to depend on an optional earlier stage without having to copy/paste the same condition everywhere. (In other words: there's an implicit condition on all of the bound textures existing)
Diffstat (limited to 'options')
0 files changed, 0 insertions, 0 deletions