X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.h;h=2f088b607feeec92fd3bb98c69be5cafde2329dd;hp=b87fce7e5bf651d811bd424d6386ec848c764a7a;hb=b564238fa1293c01c77bcabe7b2de267f146ab24;hpb=7878253d0d7b5aaa6b701499e588b31f2c5edca2 diff --git a/effect_chain.h b/effect_chain.h index b87fce7..2f088b6 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -62,6 +62,10 @@ public: std::vector outgoing_links; std::vector incoming_links; + // For unit tests only. Do not use from other code. + // Will contain an arbitrary choice if the node is in multiple phases. + Phase *containing_phase; + private: // 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 @@ -85,6 +89,10 @@ private: AlphaType output_alpha_type; bool needs_mipmaps; // Directly or indirectly. + // Set if this effect, and all effects consuming output from this node + // (in the same phase) have one_to_one_sampling() set. + bool one_to_one_sampling; + friend class EffectChain; };