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

◆ get_last_context()

NodeContext & MayaFlux::Nodes::Generator::Random::get_last_context ( )
overrideprotectedvirtual

Gets the last created context object.

Returns
Reference to the last GeneratorContext object

Reimplemented from MayaFlux::Nodes::Generator::Generator.

Definition at line 76 of file Nodes/Generators/Random.cpp.

77{
78 if (m_gpu_compatible) {
79 return m_context_gpu;
80 }
81 return m_context;
82}
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:414

References m_context, m_context_gpu, and MayaFlux::Nodes::Node::m_gpu_compatible.