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

◆ get_last_context()

NodeContext & MayaFlux::Nodes::GpuSync::GpuComputeNode::get_last_context ( )
inlineoverridevirtual

Retrieves the last created context object.

Returns
Reference to the last NodeContext object

This method provides access to the most recent NodeContext object created by the node. This context contains information about the node's state at the time of the last output generation.

Implements MayaFlux::Nodes::Node.

Definition at line 140 of file GpuComputeNode.hpp.

141 {
142 update_context(0.0);
143 return *m_context_storage;
144 }
std::unique_ptr< GpuComputeContext > m_context_storage
void update_context(double value) override
Updates the context object with the current node state.