|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::PopulationConfig::declare_fields | ( | const std::shared_ptr< NetworkGeometryBuffer > & | buffer | ) | const |
Declare the two state fields population dynamics needs.
| buffer | Buffer to declare on. Already-present names are left untouched, matching every other declare_fields in this family. |
Declares mutation_alive at hash.particle_count elements (the total seed + reserve capacity) and mutation_spawn_cursor as a single element. Neither is reset by any per-cycle stage: PopulationInitProcessor writes both exactly once, and every cycle after that only ClaimAccumulateProcessor (destroy) and PopulationSpawnProcessor (spawn) ever touch them again, forward-only, until the next reseed.
Definition at line 12 of file PopulationProcessor.cpp.
References hash, and MayaFlux::Buffers::SpatialHashConfig::particle_count.