|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
|
overridevirtual |
Per-particle collection index, global index order.
The single source of truth for "which complete vertex-array pack does this particle belong to", consumed by any GPU-side stage that needs to respect collection boundaries in a neighbour query (the spatial hash's ClaimProcessor/HashDensityColorProcessor, and optionally GpuFieldOperator's own cluster-scoped bindings): each such consumer uploads this once, at wiring time, into whatever state field it declares for the purpose, rather than every consumer reaching into get_collections() and re-deriving the same prefix sum independently.
Overrides GraphicsOperator::build_cluster_ids(), whose default (every entry 0) is exactly what this returns when there is at most one collection; the override only differs once a second one exists.
Reimplemented from MayaFlux::Nodes::Network::GraphicsOperator.
Definition at line 786 of file PhysicsOperator.cpp.
References count, get_vertex_count(), m_collections, and offset.
Here is the call graph for this function: