MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ composite_apply_semantics()

MAYAFLUX_API void MayaFlux::Nodes::detail::composite_apply_semantics ( const std::vector< std::shared_ptr< Node > > &  inputs,
NodeGraphManager &  manager,
ProcessingToken  token 
)

Definition at line 260 of file NodeCombine.cpp.

264 {
265 if (manager.get_node_config().binary_op_semantics != NodeBinaryOpSemantics::REPLACE)
266 return;
267
268 for (const auto& input : inputs) {
269 for (auto ch : get_active_channels(input, 0))
270 manager.remove_from_root(input, token, ch);
271 }
272 }
Core::GlobalInputConfig input
Definition Config.cpp:42
NodeConfig & get_node_config()
Gets the current node configuration.
std::vector< uint32_t > get_active_channels(const std::shared_ptr< Nodes::Node > &node, uint32_t fallback_channel)
Extracts active channel list from a node's channel mask.
NodeBinaryOpSemantics binary_op_semantics
Definition NodeSpec.hpp:36

References MayaFlux::Nodes::NodeConfig::binary_op_semantics, MayaFlux::Nodes::get_active_channels(), MayaFlux::Nodes::NodeGraphManager::get_node_config(), input, MayaFlux::Nodes::NodeGraphManager::remove_from_root(), and MayaFlux::Nodes::REPLACE.

Referenced by MayaFlux::Nodes::CompositeOpNode< N >::initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: