|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
inline |
Jacobi-style diffusion rule: each cell blends toward the average of its 8 Moore neighbors at the given rate.
Built on KernelTemplate::Stencil with KernelOp::WeightedBlend. PC layout is width, height, rate, neighbor_scale — neighbor_scale defaults to 1/8 to produce a true average over 8 neighbors.
| rate | Blend rate per generation, 0 (no change) to 1 (full adopt). |
Definition at line 22 of file RelaxationSpecs.hpp.
References MayaFlux::Portal::Graphics::ShaderSpec::Assemble::build(), MayaFlux::Kakshya::FLOAT32, MayaFlux::Portal::Graphics::ShaderSpec::Assemble::op(), MayaFlux::Portal::Graphics::ShaderSpec::Assemble::pc(), MayaFlux::Portal::Graphics::ShaderSpec::Assemble::ssbo(), MayaFlux::Portal::Graphics::ShaderSpec::Assemble::tmpl(), MayaFlux::Kakshya::UINT32, and MayaFlux::Portal::Graphics::ShaderSpec::Assemble::workgroup().
Here is the call graph for this function: