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

◆ HashCountProcessor()

MayaFlux::Buffers::HashCountProcessor::HashCountProcessor ( const SpatialHashConfig config,
bool  gate_alive = false 
)
explicit
Parameters
gate_aliveWhen true, binds mutation_alive and skips a particle before counting it into any cell, so a population with reserve capacity (see SpatialFieldConfig::reserve_fraction) never lets a dead or not-yet-spawned slot occupy a cell. Must agree with whatever HashScatterProcessor in the same chain uses: count and scatter disagreeing about which particles exist corrupts every cell's prefix-sum offset, not just the affected particle's own. False (the default) emits exactly today's shader, no new binding, no new branch.

Definition at line 333 of file SpatialHashProcessor.cpp.

334 : NetworkStateFieldProcessor(count_bindings(gate_alive), build_count_spec(gate_alive))
336{
337}
NetworkStateFieldProcessor(std::vector< FieldBinding > bindings, const Portal::Graphics::ShaderSpec &spec)
Construct from a generated ShaderSpec.
GridPushConstants make_grid_push_constants(const SpatialHashConfig &c)
Populate a GridPushConstants from grid config.