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

◆ on_iteration()

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

Called before each iteration's push constants and dispatch.

Parameters
cmd_idCommand buffer being recorded into.
bufferBuffer under processing.
indexZero-based iteration index.
Returns
False to skip this iteration's dispatch.

The place to rewrite descriptor bindings for ping-pong resources and to update m_push_constant_data, since push constants are re-pushed after every successful return.

Reimplemented in MayaFlux::Buffers::DiffuseProcessor, and MayaFlux::Buffers::PressureProcessor.

Definition at line 188 of file ComputeProcessor.cpp.

192{
193 return true;
194}

Referenced by execute_shader().

+ Here is the caller graph for this function: