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

◆ WallProcessor() [1/2]

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

Construct a free-slip wall stage.

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

Definition at line 14 of file WallProcessor.cpp.

15 : VolumeFieldProcessor(make_bindings(velocity_field), shader_path)
16 , m_velocity_field(std::move(velocity_field))
17{
19}
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.
static std::vector< FieldBinding > make_bindings(const std::string &velocity_field)
Build the binding table for the field name.

References MayaFlux::Buffers::VolumeFieldProcessor::add_swap_field(), and m_velocity_field.

+ Here is the call graph for this function: