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

◆ update_context()

void MayaFlux::Nodes::Generator::Polynomial::update_context ( double  value)
overrideprotectedvirtual

Updates the context object with the current node state.

Parameters
valueThe current sample value

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

Definition at line 214 of file Polynomial.cpp.

215{
216 auto view = linearized_view();
217
218 if (m_gpu_compatible) {
219 m_context_gpu.value = value;
224 } else {
225 m_context.value = value;
230 }
231}
std::span< double > m_output_buffer
Copy of output buffer.
PolynomialMode m_mode
Current processing mode.
std::span< double > m_input_buffer
Copy of input buffer.
PolynomialMode m_mode
Converts coefficient vector to a polynomial function.
size_t m_buffer_size
Maximum size of the buffers.
double value
Current sample value.
Definition Node.hpp:40
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 linearized_view(), MayaFlux::Nodes::Generator::PolynomialContext::m_buffer_size, m_buffer_size, m_context, m_context_gpu, MayaFlux::Nodes::Node::m_gpu_compatible, MayaFlux::Nodes::Generator::PolynomialContext::m_input_buffer, MayaFlux::Nodes::Generator::PolynomialContext::m_mode, m_mode, MayaFlux::Nodes::Generator::PolynomialContext::m_output_buffer, and MayaFlux::Nodes::NodeContext::value.

Referenced by notify_tick().

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