@pmndrs/bvh
    Preparing search index...

    Function planGpuLbvhBatches

    • Splits meshes into batches whose buffers this device can bind, in order. A mesh too big for any batch comes back in tooBig; callers build it on the CPU.

      maxBatchBytes (optional, default none) also caps each batch's own GPU memory: its inputs, scratch and outputs (lbvhBatchBytes). A mesh bigger than the cap on its own still builds, alone in its batch.

      Parameters

      Returns { batches: number[][]; tooBig: number[] }