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

◆ DivergenceProcessor() [2/2]

MayaFlux::Buffers::DivergenceProcessor::DivergenceProcessor ( std::string  velocity_field,
std::string  divergence_field,
const Portal::Graphics::ShaderSpec spec 
)

Construct a divergence stage from a generated ShaderSpec.

Parameters
velocity_fieldName of the field differentiated.
divergence_fieldName of the scalar field written.
specShaderSpec implementing the stencil.

Definition at line 24 of file DivergenceProcessor.cpp.

28 : VolumeFieldProcessor(make_bindings(velocity_field, divergence_field), spec)
29 , m_velocity_field(std::move(velocity_field))
30 , m_divergence_field(std::move(divergence_field))
31{
32}
static std::vector< FieldBinding > make_bindings(const std::string &velocity_field, const std::string &divergence_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.