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

◆ get_last_context()

NodeContext & MayaFlux::Nodes::Generator::Generator::get_last_context ( )
overridevirtual

Gets the last created context object.

Returns
Reference to the last GeneratorContext object

Implements MayaFlux::Nodes::Node.

Reimplemented in MayaFlux::Nodes::Generator::Logic, MayaFlux::Nodes::Generator::Polynomial, and MayaFlux::Nodes::Generator::Stochastics::Random.

Definition at line 49 of file Generator.cpp.

50{
51 if (is_gpu_compatible()) {
52 return m_context_gpu;
53 }
54 return m_context;
55}
bool is_gpu_compatible() const
Checks if the node supports GPU processing.
Definition Node.hpp:329

References MayaFlux::Nodes::Node::is_gpu_compatible(), m_context, and m_context_gpu.

Referenced by MayaFlux::Nodes::Generator::Impulse::notify_tick(), MayaFlux::Nodes::Generator::Phasor::notify_tick(), and MayaFlux::Nodes::Generator::Sine::notify_tick().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: