@pmndrs/bvh
    Preparing search index...

    Interface TraceBatch

    interface TraceBatch {
        count: number;
        mask?: number;
        mode: "any" | "closest";
        rays: GPUBuffer;
        results: GPUBuffer;
        timestampWrites?: GPUComputePassTimestampWrites;
    }
    Index
    count: number
    mask?: number

    The batch's ray mask (one for the whole batch). Default all ones. Ignored by a kernel made with rayMasks: false.

    mode: "any" | "closest"
    rays: GPUBuffer

    At least count rays of 32 bytes (BvhRay).

    results: GPUBuffer

    Closest: count records of HIT_RECORD_BYTES (HIT_RECORD_COMPACT_BYTES with hitNormal: false). Any: count u32, 1 = blocked. A kernel made with counters: true: count records of WALK_COUNTS_BYTES in either mode.

    timestampWrites?: GPUComputePassTimestampWrites

    Optional GPU timing for the dispatch's pass, for example from GpuTimer.computePass().