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

◆ on_iteration()

bool MayaFlux::Buffers::DiffuseProcessor::on_iteration ( Portal::Graphics::CommandBufferID  cmd_id,
const std::shared_ptr< VKBuffer > &  buffer,
uint32_t  index 
)
overrideprotectedvirtual

Write this pass's parity and first-pass flag.

Parameters
cmd_idCommand buffer being recorded into.
bufferBuffer under processing.
indexZero-based iteration index.
Returns
Always true. Every pass dispatches.

Reimplemented from MayaFlux::Buffers::ComputeProcessor.

Definition at line 73 of file DiffuseProcessor.cpp.

77{
78 write_lattice_word3((index % 2) | (index == 0 ? 2U : 0U));
79 return true;
80}
void write_lattice_word3(uint32_t value)
Write word three of the shared prefix.

References MayaFlux::Buffers::VolumeFieldProcessor::write_lattice_word3().

+ Here is the call graph for this function: