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

◆ DivergenceProcessor() [1/2]

MayaFlux::Buffers::DivergenceProcessor::DivergenceProcessor ( std::string  velocity_field,
std::string  divergence_field,
const std::string &  shader_path 
)

Construct a divergence stage.

Parameters
velocity_fieldName of the field differentiated. Must have stride sizeof(glm::vec4).
divergence_fieldName of the scalar field written. Must have stride sizeof(float).
shader_pathPath to the compute shader.

Definition at line 14 of file DivergenceProcessor.cpp.

18 : VolumeFieldProcessor(make_bindings(velocity_field, divergence_field), shader_path)
19 , m_velocity_field(std::move(velocity_field))
20 , m_divergence_field(std::move(divergence_field))
21{
22}
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.