Function setHierarchyInstanceCount
-
Parameters
- pool: HierarchyInstancePool
Pool created by createHierarchyInstancePool.
- count: number
New active logical instance count, from 0 to
pool.capacity.
Returns void
- pool: HierarchyInstancePool
Pool created by createHierarchyInstancePool.
New active logical instance count, from 0 to pool.capacity.
Set the active logical hierarchy instance count without reallocating buffers.
This mirrors setThinInstanceCount: it only changes how many existing slots draw. Newly exposed slots are not initialized here; use addHierarchyInstance when growing with a new matrix, or immediately call setHierarchyInstanceMatrix before the next frame.