diff options
author | Bin Jin <bjin@ctrl-d.org> | 2019-03-07 15:06:24 +0000 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-03-09 12:56:11 +0100 |
commit | 1d0349d3b5d9a263251fcb3b0d7e135d4731bfd0 (patch) | |
tree | 92614a4e6d04276d8a543e178376854da8b3af66 /video/out/gpu/user_shaders.h | |
parent | b3cbd4650984902548432f15be9f267f9cb2230e (diff) | |
download | mpv-1d0349d3b5d9a263251fcb3b0d7e135d4731bfd0.tar.bz2 mpv-1d0349d3b5d9a263251fcb3b0d7e135d4731bfd0.tar.xz |
vo_gpu: add two useful operators to user shader
modulo operator could be used to check if size is multiple of a
certain number.
equal operator could be used to verify if size of different textures
aligns.
Diffstat (limited to 'video/out/gpu/user_shaders.h')
-rw-r--r-- | video/out/gpu/user_shaders.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gpu/user_shaders.h b/video/out/gpu/user_shaders.h index 8d8cc6bde0..a477e3ce3d 100644 --- a/video/out/gpu/user_shaders.h +++ b/video/out/gpu/user_shaders.h @@ -30,9 +30,11 @@ enum szexp_op { SZEXP_OP_SUB, SZEXP_OP_MUL, SZEXP_OP_DIV, + SZEXP_OP_MOD, SZEXP_OP_NOT, SZEXP_OP_GT, SZEXP_OP_LT, + SZEXP_OP_EQ, }; enum szexp_tag { |