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

◆ update_context()

void MayaFlux::Nodes::GpuSync::GpuComputeNode::update_context ( double  value)
overridevirtual

Updates the context object with the current node state.

Parameters
valueThe current sample value

This method is responsible for updating the NodeContext object with the latest state information from the node. It is called internally whenever a new output value is produced, ensuring that the context reflects the current state of the node for use in callbacks.

Implements MayaFlux::Nodes::Node.

Definition at line 86 of file GpuComputeNode.cpp.

87{
88 m_context_storage = std::make_unique<GpuComputeContext>(m_last_result);
89
90 if (!m_context_storage) {
92 "GpuComputeNode: failed to create GpuComputeContext");
93 }
94}
#define MF_ERROR(comp, ctx,...)
std::unique_ptr< GpuComputeContext > m_context_storage
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References m_context_storage, m_last_result, MF_ERROR, MayaFlux::Journal::NodeProcessing, and MayaFlux::Journal::Nodes.

Referenced by notify_tick().

+ Here is the caller graph for this function: