]> git.sesse.net Git - movit/commit
Break phases when a node needs both to supply mipmaps and _not_ supply mipmaps.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 18 Jan 2018 00:07:26 +0000 (01:07 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 18 Jan 2018 00:16:27 +0000 (01:16 +0100)
commit465c27f0766f4d5a226f6a4116cc2707002ee722
treedc88f24cb212450048804865911a2ec8001dcdcb
parentf5e3256da7d8e3a56c002da47bedf8ec1a2133f4
Break phases when a node needs both to supply mipmaps and _not_ supply mipmaps.

In most cases, this means that we can keep a local copy that supplies
mipmaps and an RTT input that doesn't, or the other way around.

This is not a complete solution, since it doesn't take into account
the case where _both_ inputs will be RTT, but it's good enough for now.

Also requires us to distinguish between links between nodes in the same phase
and in different phases, or we'd get GLSL compile errors as we had both the
local and the RTT input being called e.g. “in0”.
effect_chain.cpp
effect_chain.h
effect_chain_test.cpp