ReadonlyflagWords of triangle flags (meshes with flags only).
ReadonlyindexIndex bytes in the batch's indices (each mesh's rounded up to 4).
ReadonlyinnerRadix-tree inner nodes: max(1, triangles - 1) per mesh.
ReadonlymeshesReadonlyoutOutput triangles: triangles plus the gaps left before meshes (triangleLeading).
ReadonlypositionVertex bytes in the batch's positions (each mesh's rounded up to 4).
ReadonlysortSort tiles: ceil(triangles / SORT_TILE_KEYS) per mesh.
ReadonlytilesWorkgroup tiles: ceil(triangles / LBVH_WORKGROUP_SIZE) per mesh.
Readonlytriangles
What a batch's buffer sizes depend on. Every field is a sum over the batch's meshes, so a planner can add meshes one at a time (addBatchTotals).