X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=effect_chain.h;fp=effect_chain.h;h=6cd689d7c38f0b8386deb007d88ad1449a0f18cf;hb=d4f00f9f47a0efaefabaf1efa1a0e214eeecca67;hp=1078027a7bfc3b859531ddd6932ff79c96cc1795;hpb=edb0700c0a8ea225ce9add1cb4f70d42af6de381;p=movit diff --git a/effect_chain.h b/effect_chain.h index 1078027..6cd689d 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -57,9 +57,6 @@ public: std::vector incoming_links; private: - // Identifier used to create unique variables in GLSL. - std::string effect_id; - // Logical size of the output of this effect, ie. the resolution // you would get if you sampled it as a texture. If it is undefined // (since the inputs differ in resolution), it will be 0x0. @@ -93,6 +90,10 @@ struct Phase { std::vector effects; // In order. unsigned output_width, output_height, virtual_output_width, virtual_output_height; + + // Identifier used to create unique variables in GLSL. + // Unique per-phase to increase cacheability of compiled shaders. + std::map effect_ids; }; class EffectChain {