MayaFlux 0.4.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 267 of file NodeCombine.cpp.

271 {
272 if (manager.get_node_config().binary_op_semantics != NodeBinaryOpSemantics::REPLACE)
273 return;
274
275 for (const auto& input : inputs) {
276 for (auto ch : get_active_channels(input, 0))
277 manager.remove_from_root(input, token, ch);
278 }
279 }
Core::GlobalInputConfig input
Definition Config.cpp:36
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.

+ Here is the call graph for this function: