X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=effect.cpp;h=1aa37781525f1f7454f656e0c05161ddce9f82e1;hb=5058b68995b5d39042df42df06d55559ee535d38;hp=4f2bfd616a3400f1ea3a6929ff5d755f3d9b0f2f;hpb=dfc674ba521d6c596399deff06afc2eb1b7b49d7;p=movit diff --git a/effect.cpp b/effect.cpp index 4f2bfd6..1aa3778 100644 --- a/effect.cpp +++ b/effect.cpp @@ -4,6 +4,7 @@ #include #include #include "effect.h" +#include "effect_chain.h" #include "util.h" #include @@ -169,6 +170,11 @@ void Effect::invalidate_1d_texture(const std::string &key) params_tex_1d[key].needs_update = true; } +void Effect::add_self_to_effect_chain(EffectChain *chain, const std::vector &inputs) +{ + chain->add_effect_raw(this, inputs); +} + // Output convenience uniforms for each parameter. // These will be filled in per-frame. std::string Effect::output_convenience_uniforms() const