Function removeHierarchyInstance
-
Parameters
- pool: HierarchyInstancePool
Pool created by createHierarchyInstancePool.
- index: number
Active logical instance index to remove.
Returns void
- pool: HierarchyInstancePool
Pool created by createHierarchyInstancePool.
Active logical instance index to remove.
Remove one logical hierarchy instance with O(1) swap-remove semantics.
If
indexis not the last active slot, the last logical instance moves intoindexin every descendant mesh buffer.