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

◆ on_before_execute()

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

Called before each process callback.

Parameters
cmdCommand buffer
bufferCurrently processing buffer
Returns
True to proceed with execution, false to skip

Override to update push constants or dynamic descriptors.

Reimplemented from MayaFlux::Buffers::ShaderProcessor.

Definition at line 599 of file SpatialHashProcessor.cpp.

602{
603 return guard_and_resync(cmd_id, buffer, m_particle_op->revision(), m_built_revision, [this] {
604 const auto& pconfig = m_particle_op->get_field_config();
605 m_params.density_saturation_count = pconfig.density_saturation_count;
606 m_params.cross_cluster = pconfig.cross_cluster ? 1U : 0U;
607 set_push_constant_data(m_params);
608 });
609}
std::shared_ptr< Nodes::Network::GpuFieldOperator > m_particle_op
bool guard_and_resync(Portal::Graphics::CommandBufferID cmd_id, const std::shared_ptr< VKBuffer > &buffer, uint64_t current_revision, uint64_t &built_revision, F &&reload)
Base on_before_execute guard, then a revision-gated tuning reload.

References MayaFlux::Buffers::NetworkStateFieldProcessor::guard_and_resync(), m_built_revision, and m_particle_op.

+ Here is the call graph for this function: