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

◆ AdvectProcessor() [1/2]

MayaFlux::Buffers::AdvectProcessor::AdvectProcessor ( std::string  velocity_field,
std::string  carried_field,
const std::string &  shader_path 
)

Construct an advection stage.

Parameters
velocity_fieldName of the field traced through. Must have stride sizeof(glm::vec4).
carried_fieldName of the field transported. May equal velocity_field for self-advection. Must be double-buffered.
shader_pathPath to the compute shader implementing the trace.

Definition at line 20 of file AdvectProcessor.cpp.

24 : VolumeFieldProcessor(make_bindings(velocity_field, carried_field), shader_path)
25 , m_velocity_field(std::move(velocity_field))
26 , m_carried_field(std::move(carried_field))
27{
29}
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: