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

◆ wants_swap()

bool MayaFlux::Buffers::DiffuseProcessor::wants_swap ( ) const
overrideprotectedvirtual

Swap only when the pass count leaves the result in the write slot.

Returns
True when the iteration count is odd.

Reimplemented from MayaFlux::Buffers::VolumeFieldProcessor.

Definition at line 68 of file DiffuseProcessor.cpp.

69{
70 return (get_iteration_count() % 2) == 1;
71}
uint32_t get_iteration_count() const
Dispatches recorded per execute cycle.

References MayaFlux::Buffers::ComputeProcessor::get_iteration_count().

+ Here is the call graph for this function: