Materialize occurrences of a DECODED shard that is not on the GPU, e.g. read
back from local storage after CPU geometry release (#10264). Prepared exactly
as Scene.addInstancedShard prepares an upload (prepareInstancedRender:
opaque occurrences only, composed matrices, canonical f64 anchors), then
expanded by the same materializeInstances. The result is in the model's
own frame: place it like any flat source (placeAppearanceSource).
occurrenceKeys are prefixed with keyPrefix, so caches keyed on them never
collide with the scene's own occurrences or another shard's.
With budgetBytes, each occurrence's bytes (its template's positions, normals and indices) are charged
BEFORE it is expanded, and a RangeError is thrown as soon as the total would exceed the budget: a read
too large is refused without allocating it first.
Materialize occurrences of a DECODED shard that is not on the GPU, e.g. read back from local storage after CPU geometry release (#10264). Prepared exactly as
Scene.addInstancedShardprepares an upload (prepareInstancedRender: opaque occurrences only, composed matrices, canonical f64 anchors), then expanded by the samematerializeInstances. The result is in the model's own frame: place it like any flat source (placeAppearanceSource).occurrenceKeys are prefixed withkeyPrefix, so caches keyed on them never collide with the scene's own occurrences or another shard's.With
budgetBytes, each occurrence's bytes (its template's positions, normals and indices) are charged BEFORE it is expanded, and aRangeErroris thrown as soon as the total would exceed the budget: a read too large is refused without allocating it first.