]> git.sesse.net Git - movit/blobdiff - effect_chain.h
Collapse passes more aggressively in the face of size changes.
[movit] / effect_chain.h
index b87fce7e5bf651d811bd424d6386ec848c764a7a..2f088b607feeec92fd3bb98c69be5cafde2329dd 100644 (file)
@@ -62,6 +62,10 @@ public:
        std::vector<Node *> outgoing_links;
        std::vector<Node *> 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;
 };