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

◆ update_context()

void MayaFlux::Nodes::BinaryOpNode::update_context ( double  value)
overrideprotectedvirtual

updates context object for callbacks

Parameters
valueThe current combined output value

This method updates the specialized context object containing the combined output value and the individual values from both input nodes, providing callbacks with rich information about the operation's inputs and output.

Implements MayaFlux::Nodes::Node.

Definition at line 331 of file NodeStructure.cpp.

332{
333 if (m_gpu_compatible) {
337 } else {
341 }
342}
double rhs_value
The value from the right-hand side node.
double lhs_value
The value from the left-hand side node.
double m_last_rhs_value
The last output value from the right-hand side node.
double m_last_lhs_value
The last output value from the left-hand side node.
double value
Current sample value.
Definition Node.hpp:40
double m_last_output
The most recent sample value generated by this oscillator.
Definition Node.hpp:374
bool m_gpu_compatible
Flag indicating if the node supports GPU processing This flag is set by derived classes to indicate w...
Definition Node.hpp:383

References MayaFlux::Nodes::BinaryOpContext::lhs_value, m_context, m_context_gpu, MayaFlux::Nodes::Node::m_gpu_compatible, m_last_lhs_value, MayaFlux::Nodes::Node::m_last_output, m_last_rhs_value, MayaFlux::Nodes::BinaryOpContext::rhs_value, and MayaFlux::Nodes::NodeContext::value.

Referenced by notify_tick().

+ Here is the caller graph for this function: