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

◆ on_before_execute()

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

Reject buffers that are not the validated NetworkGeometryBuffer.

Reimplemented from MayaFlux::Buffers::NetworkStateFieldProcessor.

Definition at line 183 of file PopulationProcessor.cpp.

186{
187 return guard_and_resync(cmd_id, buffer, m_particle_op->revision(), m_built_revision, [this] {
188 m_params.spawn_density_threshold = m_particle_op->get_field_config().spawn_density_threshold;
189 set_push_constant_data(m_params);
190 });
191}
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.
std::shared_ptr< Nodes::Network::GpuFieldOperator > m_particle_op

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

+ Here is the call graph for this function: