@pmndrs/bvh
    Preparing search index...

    Class GpuLbvhBuilder

    Compiles the builder's kernels once per device and builds any number of batches with them.

    Index
    • Builds every mesh's tree in one batch and one submit. A refused mesh has problem set; the others are fine. timestampWrites (optional) times the batch's one compute pass: resolve its query set after this resolves.

      Parameters

      Returns Promise<GpuTreeBuffers>

    • The builder needs subgroups; without them, callers use the declared fallback (tinybvh, B0).

      Parameters

      • device: GPUDevice

      Returns boolean

    • Compiles the kernels (asynchronously, so the main thread doesn't stall).

      Returns Promise<void>