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

◆ guard_and_resync()

template<typename F >
bool MayaFlux::Buffers::NetworkStateFieldProcessor::guard_and_resync ( Portal::Graphics::CommandBufferID  cmd_id,
const std::shared_ptr< VKBuffer > &  buffer,
uint64_t  current_revision,
uint64_t &  built_revision,
F &&  reload 
)
inlineprotected

Base on_before_execute guard, then a revision-gated tuning reload.

Parameters
current_revisionThe owning operator's revision() sampled now.
built_revisionRevision the push constants were last built for; overwritten with current_revision when reload runs.
reloadCalled only on a revision change; must re-read the tuning fields into the Params struct and call set_push_constant_data.
Returns
False when the base guard rejects the cycle.

Definition at line 254 of file SpatialHashProcessor.hpp.

260 {
262 return false;
263 }
264 if (current_revision != built_revision) {
265 std::forward<F>(reload)();
266 built_revision = current_revision;
267 }
268 return true;
269 }
bool on_before_execute(Portal::Graphics::CommandBufferID cmd_id, const std::shared_ptr< VKBuffer > &buffer) override
Reject buffers that are not the validated NetworkGeometryBuffer.

Referenced by MayaFlux::Buffers::ClaimProcessor::on_before_execute(), MayaFlux::Buffers::ClaimSwallowProcessor::on_before_execute(), MayaFlux::Buffers::PopulationSpawnProcessor::on_before_execute(), and MayaFlux::Buffers::HashDensityColorProcessor::on_before_execute().

+ Here is the caller graph for this function: