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

◆ process()

void MayaFlux::Nodes::Network::OperatorChain::process ( float  dt,
const NetworkOperator upstream = nullptr 
)

Call process(dt) on each operator in insertion order.

Parameters
dtTime delta or sample count passed to each operator.
upstreamPrimary operator output to offer as upstream context. Passed to each chain operator that declares consumes_upstream() == true before its process() call. Null is valid (no upstream available).

Definition at line 31 of file OperatorChain.cpp.

32{
33 const NetworkOperator* last = upstream;
34 for (const auto& op : m_operators) {
35 if (auto* gfx = dynamic_cast<GraphicsOperator*>(op.get())) {
36 if (gfx->consumes_upstream()) {
37 gfx->seed_from_upstream(
38 dynamic_cast<const GraphicsOperator*>(last));
39 }
40 }
41 op->process(dt);
42 last = op.get();
43 }
44}
std::vector< std::shared_ptr< NetworkOperator > > m_operators

References m_operators, and MayaFlux::Nodes::Network::NetworkOperator::process().

+ Here is the call graph for this function: