|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MayaFlux::Buffers::PressureProcessor::PressureProcessor | ( | std::string | divergence_field, |
| std::string | pressure_field, | ||
| const std::string & | shader_path, | ||
| uint32_t | iterations = 40 |
||
| ) |
Construct a pressure solve stage.
| divergence_field | Name of the scalar field read as the right-hand side. Must have stride sizeof(float). |
| pressure_field | Name of the scalar field solved. Must have stride sizeof(float) and be double-buffered. |
| shader_path | Path to the compute shader. |
| iterations | Jacobi passes per cycle. Values below 1 clamp to 1. |
Definition at line 16 of file PressureProcessor.cpp.
References MayaFlux::Buffers::VolumeFieldProcessor::add_swap_field(), m_pressure_field, and MayaFlux::Buffers::ComputeProcessor::set_iteration_count().
Here is the call graph for this function: