@pmndrs/bvh
    Preparing search index...

    Interface BatchBytes<Name>

    The bytes of a batch's buffers by name, split into what the batch frees (scratch, with its inputs) and what it hands out (outputs).

    interface BatchBytes<Name extends string = string> {
        buffers: Readonly<Record<Name, number>>;
        outputs: number;
        scratch: number;
        total: number;
    }

    Type Parameters

    • Name extends string = string
    Index
    buffers: Readonly<Record<Name, number>>

    Each buffer's bytes as allocated.

    outputs: number

    Output nodes, triangles and parents: handed to the caller.

    scratch: number

    Inputs, scratch and uniforms: freed with the batch (or held in a scratch pool).

    total: number