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

◆ composite_apply_semantics()

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

Definition at line 258 of file NodeCombine.cpp.

262 {
263 if (manager.get_node_config().binary_op_semantics != NodeBinaryOpSemantics::REPLACE)
264 return;
265
266 for (const auto& input : inputs) {
267 for (auto ch : get_active_channels(input, 0))
268 manager.remove_from_root(input, token, ch);
269 }
270 }
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(), MayaFlux::Nodes::NodeGraphManager::remove_from_root(), and MayaFlux::Nodes::REPLACE.

+ Here is the call graph for this function: