@pmndrs/bvh
    Preparing search index...

    Interface GpuClosestHits

    A closest-hit batch's results.

    interface GpuClosestHits {
        count: number;
        gpuMs: number | null;
        hits: number;
        records: ArrayBuffer;
        wallMs: number;
        hit(index: number): GpuRayHit | null;
    }

    Hierarchy (View Summary)

    Index
    count: number
    gpuMs: number | null

    GPU milliseconds of the dispatch (timestamps), or null without timestamp-query (or with timestamps: false).

    hits: number

    Rays that hit.

    records: ArrayBuffer

    The raw records, HIT_RECORD_BYTES per ray (HIT_RECORD_WORD), for code that reads them itself.

    wallMs: number

    CPU wall milliseconds from the submit to the results on the CPU (dispatch plus readback).