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

◆ SolenoidalProcessor() [1/2]

MayaFlux::Buffers::SolenoidalProcessor::SolenoidalProcessor ( std::string  pressure_field,
std::string  velocity_field,
const std::string &  shader_path 
)

Construct a gradient subtraction stage.

Parameters
pressure_fieldName of the scalar field differentiated. Must have stride sizeof(float).
velocity_fieldName of the field corrected. Must have stride sizeof(glm::vec4) and be double-buffered.
shader_pathPath to the compute shader.

Definition at line 15 of file SolenoidalProcessor.cpp.

19 : VolumeFieldProcessor(make_bindings(pressure_field, velocity_field), shader_path)
20 , m_pressure_field(std::move(pressure_field))
21 , m_velocity_field(std::move(velocity_field))
22{
24}
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: