/** * Propagates each `.rad` splat's **parent LOD node size** as chunks stream in. * * The foveation cut (see `docs/formats/rad-notes.md` M14.6) draws a splat `i` when * `parentPixelScale(i) > limit ≥ ownPixelScale(i)` - exactly one node per * root→leaf path, since `pixel_scale = size / distance` decreases monotonically * down the tree. That test needs each splat's *parent's* `size`, but the file * only stores the forward links (`child_start`/`child_count`): a node lists its * children, not its parent. * * So we invert the links incrementally. When a chunk decodes, each internal * node's `size` is recorded against the global index range of its children * (`[child_start, child_start + child_count)`); a later chunk holding those * children reads its own parent sizes back out. Because chunks stream roughly * coarsest-first (a node's parent is always at a lower global index, and the * coarse base loads first), parents are normally decoded before their children. * A child whose parent has not decoded yet gets `Infinity` - treated as a root, * so it draws whenever it is small enough on screen; the worst case is a little * over-draw, never a hole or a crash. * * This decode order is the **original** chunk order (no frontier reorder), so * `child_start` still points at the right splats - the foveation path keeps * splats in file order and lets the GPU cull choose the cut per splat. */ export declare class RadParentSizes { private readonly chunkSize; /** Parent-size ranges awaiting the child chunk that will consume them, * keyed by that child chunk index. Each range is a global-index span. */ private readonly pending; /** Chunks already resolved - a parent decoded after its child can't fix it, * so we drop such stragglers rather than leak them. */ private readonly resolved; constructor(chunkSize: number); /** * Records `chunkIndex`'s internal→child links and returns that chunk's * per-splat parent sizes (in the chunk's own splat order). Call once per * chunk, as it decodes. * * @param childCount - Per-splat child count (0 = leaf). * @param childStart - Per-splat first-child global index. * @param size - Per-splat LOD node size. */ resolve(chunkIndex: number, childCount: Uint16Array, childStart: Uint32Array, size: Float32Array): Float32Array; private push; }