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

◆ SolenoidalProcessor() [2/2]

MayaFlux::Buffers::SolenoidalProcessor::SolenoidalProcessor ( std::string  pressure_field,
std::string  velocity_field,
const Portal::Graphics::ShaderSpec spec 
)

Construct a gradient subtraction stage from a generated ShaderSpec.

Parameters
pressure_fieldName of the scalar field differentiated.
velocity_fieldName of the field corrected.
specShaderSpec implementing the stencil.

Definition at line 26 of file SolenoidalProcessor.cpp.

30 : VolumeFieldProcessor(make_bindings(pressure_field, velocity_field), spec)
31 , m_pressure_field(std::move(pressure_field))
32 , m_velocity_field(std::move(velocity_field))
33{
35}
static std::vector< FieldBinding > make_bindings(const std::string &pressure_field, const std::string &velocity_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_velocity_field.

+ Here is the call graph for this function: