@pmndrs/bvh
    Preparing search index...

    Class GpuHplocBuilder

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

    Index
    slots: number

    Cluster slots per lane in the merge on this device (1 when subgroups are at least 32 wide).

    • 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

      • geometries: readonly GpuMeshGeometry[]
      • options: GpuHplocBatchOptions = {}
      • OptionaltimestampWrites: GPUComputePassTimestampWrites

      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). Every compile is asked for before the first await, so a caller that starts other compiles in the same task (ddgi-core's prepare) has these queued alongside, not behind them.

      Returns Promise<void>