|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MayaFlux::Buffers::DiffuseProcessor::DiffuseProcessor | ( | std::string | target_field, |
| std::string | scratch_field, | ||
| const std::string & | shader_path, | ||
| uint32_t | iterations = 20 |
||
| ) |
Construct a diffusion stage.
| target_field | Name of the field diffused. Must be double-buffered. |
| scratch_field | Name of a field of matching stride holding the pre-diffusion values across passes. Not swapped, may be single-buffered, and its contents are overwritten every cycle. |
| shader_path | Path to the compute shader. |
| iterations | Jacobi passes per cycle. Values below 1 clamp to 1. |
Definition at line 16 of file DiffuseProcessor.cpp.
References MayaFlux::Buffers::VolumeFieldProcessor::add_swap_field(), m_target_field, and MayaFlux::Buffers::ComputeProcessor::set_iteration_count().
Here is the call graph for this function: