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

◆ AdvectProcessor() [2/2]

MayaFlux::Buffers::AdvectProcessor::AdvectProcessor ( std::string  velocity_field,
std::string  carried_field,
const Portal::Graphics::ShaderSpec spec 
)

Construct an advection stage from a generated ShaderSpec.

Parameters
velocity_fieldName of the field traced through.
carried_fieldName of the field transported.
specShaderSpec implementing the trace.

Definition at line 31 of file AdvectProcessor.cpp.

35 : VolumeFieldProcessor(make_bindings(velocity_field, carried_field), spec)
36 , m_velocity_field(std::move(velocity_field))
37 , m_carried_field(std::move(carried_field))
38{
40}
static std::vector< FieldBinding > make_bindings(const std::string &velocity_field, const std::string &carried_field)
Build the binding table for the two field names.
VolumeFieldProcessor(std::vector< FieldBinding > bindings, const std::string &shader_path)
Construct from a shader path.
void add_swap_field(std::string field)
Register a field to swap after each dispatch.

References MayaFlux::Buffers::VolumeFieldProcessor::add_swap_field(), and m_carried_field.

+ Here is the call graph for this function: