@pmndrs/bvh
    Preparing search index...

    Interface ClosestPointBatch

    One batch of closest-point queries (ClosestPointBatchKernel.encode).

    interface ClosestPointBatch {
        count: number;
        mask?: number;
        queries: GPUBuffer;
        results: GPUBuffer;
        timestampWrites?: GPUComputePassTimestampWrites;
    }
    Index
    count: number
    mask?: number

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

    queries: GPUBuffer

    At least count queries of POINT_QUERY_BYTES (16): vec4f(point.xyz, maxDistance), world space.

    results: GPUBuffer

    count records of CLOSEST_POINT_RECORD_BYTES (48), words in CLOSEST_POINT_RECORD_WORD.

    timestampWrites?: GPUComputePassTimestampWrites

    Optional GPU timing for the dispatch's pass.