@pmndrs/bvh
    Preparing search index...

    Class GpuHplocScratchPool

    The inputs, scratch and uniforms of H-PLOC batches built one after another (GpuHplocBuilder.createScratchPool), allocated once at the largest batch's size, so a capped load (maxBatchBytes) doesn't allocate and free them per batch. One batch at a time may use it: record, submit and finish a batch before creating the next. Free it with destroy after the last.

    Index
    mortonCodes: HplocMortonCodes
    sizes: Readonly<Record<HplocPoolBuffer, number>>

    Each buffer's bytes.

    • get bytes(): number

      GPU bytes the pool holds (0 once destroyed).

      Returns number

    • The pool's buffer name, checked to hold bytes.

      Parameters

      • name: HplocPoolBuffer
      • bytes: number

      Returns GPUBuffer