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

◆ on_before_execute()

bool MayaFlux::Buffers::RelaxationStepProcessor::on_before_execute ( Portal::Graphics::CommandBufferID  cmd_id,
const std::shared_ptr< VKBuffer > &  buffer 
)
overrideprotectedvirtual

Write the state_in / state_out descriptor bindings for the current front/back assignment, then evaluate the step predicate.

Parameters
cmd_idCommand buffer this cycle's dispatch will be recorded into.
bufferThe attached RelaxationGridBuffer, received as VKBuffer.
Returns
True if execute_shader should proceed this cycle.

Reimplemented from MayaFlux::Buffers::ShaderProcessor.

Definition at line 98 of file RelaxationStepProcessor.cpp.

101{
102 if (!std::dynamic_pointer_cast<RelaxationGridBuffer>(buffer)) {
103 return false;
104 }
105
107}
StepPredicate m_step_predicate
Optional gate deciding whether a given cycle advances a generation.

References m_step_predicate.