ReadonlycountNumber of gaussians of valid data this buffer holds.
ReadonlydataCPU buffer holding this layer's interleaved per-gaussian records. Its
capacity may exceed count * stride (it is sized for a full chunk);
only the leading count * stride bytes are meaningful.
ReadonlyfieldsField name -> byte offset / component descriptor within the stride.
ReadonlylayerWhich layer this buffer holds.
ReadonlystrideBytes per gaussian for this buffer's layer.
Extract one named field as a tight (de-interleaved) typed-array over the valid rows. The result is a copy — fields are generally a sub-span of the stride, so a zero-copy view isn't possible.
Return this buffer to its ChunkDataPool for reuse. After this call the buffer must not be referenced again.
A CPU-resident buffer holding one layer's data for one chunk of gaussians.
A "chunk" is a row-range — a contiguous subset of gaussians; a
ChunkDataholds one layer's data for one such chunk (it carries a.layer, and you acquire and bindposition/geometric/color/otherseparately). Buffers are acquired from a ChunkDataPool, filled by ChunkSource.read, used by consumers (writers, kernels that uploaddatato the GPU themselves), and then released back to the pool. The underlyingArrayBufferis reused across subsequent acquisitions of the same byte size.countis the number of gaussians of valid data this buffer holds; it matches the source'schunkSizeexcept for the final (short) chunk. The backingdatabuffer is allocated at full chunk capacity (chunkSize * stride), so the valid region is always the leadingcount * stridebytes.strideis the bytes per gaussian, dictated by the layer (and, forcolorandother, by the SH band count or extras schema).