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

◆ CompositeOpNode() [1/3]

template<size_t N = 0>
MayaFlux::Nodes::CompositeOpNode< N >::CompositeOpNode ( std::vector< std::shared_ptr< Node > >  inputs,
CombineFunc  func 
)
inline

Creates a composite operation node (unmanaged)

Parameters
inputsThe input nodes whose outputs will be combined
funcFunction that receives all node outputs and returns combined result

Definition at line 347 of file NodeCombine.hpp.

350 : m_inputs(std::move(inputs))
351 , m_func(std::move(func))
352 , m_input_values(m_inputs.size(), 0.0)
353 , m_saved_input_values(m_inputs.size(), 0.0)
354 , m_context(0.0, std::vector<double>(m_inputs.size(), 0.0))
355 , m_context_gpu(0.0, std::vector<double>(m_inputs.size(), 0.0), Node::get_gpu_data_buffer())
356 {
358 }
#define N(method_name, full_type_name)
Definition Creator.hpp:183
std::vector< double > m_input_values
CompositeOpContextGpu m_context_gpu
const std::vector< std::shared_ptr< Node > > & inputs() const
std::vector< double > m_saved_input_values
std::vector< std::shared_ptr< Node > > m_inputs
std::span< const float > get_gpu_data_buffer() const
Provides access to the GPU data buffer.
Definition Node.cpp:78
void composite_validate(const std::vector< std::shared_ptr< Node > > &inputs, size_t N)

References N.