X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=effect_chain.h;h=c3dadffca3b115bbfdab3553bdbd81050b0ed9f7;hb=0c821b2e;hp=9fb1d4ea6642a48ec38216a0c5a5b607b3f48015;hpb=6bec5fc3abc5f57c6cddec2148626cca9a94bedf;p=movit diff --git a/effect_chain.h b/effect_chain.h index 9fb1d4e..c3dadff 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -303,6 +303,13 @@ public: // single-sampler input, or from an RTT texture. GLenum get_input_sampler(Node *node, unsigned input_num) const; + // Whether input of corresponds to a single sampler + // (see get_input_sampler()). Normally, you should not need to call this; + // however, if the input Effect has set override_texture_bounce(), + // this will return false, and you could be flexible and check it first + // if you want. + GLenum has_input_sampler(Node *node, unsigned input_num) const; + // Get the current resource pool assigned to this EffectChain. // Primarily to let effects allocate textures as needed. // Any resources you get from the pool must be returned to the pool