]> git.sesse.net Git - movit/blobdiff - luma_mix_effect.h
Fix an issue where a (cached) shader program could be used from multiple
[movit] / luma_mix_effect.h
index ce890dfb557e887e6059d4178738fc5d1acad17c..3ff81bf6b1641794c2d6db379027d50f0737615e 100644 (file)
@@ -26,11 +26,14 @@ public:
 
        virtual bool needs_srgb_primaries() const { return false; }
        virtual unsigned num_inputs() const { return 3; }
+       virtual bool one_to_one_sampling() const { return true; }
        virtual AlphaHandling alpha_handling() const { return INPUT_PREMULTIPLIED_ALPHA_KEEP_BLANK; }
 
 private:
        float transition_width, progress;
        int inverse;  // 0 or 1.
+       bool uniform_inverse;
+       float uniform_progress_mul_w_plus_one;
 };
 
 }  // namespace movit