@neutrium/rand API - v2.0.0
    Preparing search index...

    Interface PhiloxGpuBuffer

    Generated GPU-resident words and their owning device.

    interface PhiloxGpuBuffer {
        buffer: GPUBuffer;
        byte_length: number;
        device: GPUDevice;
        gpu_elapsed_ns?: Promise<number>;
        length: number;
    }
    Index
    buffer: GPUBuffer

    GPU buffer containing random words; the caller must destroy it when finished.

    byte_length: number

    Size of the generated output in bytes.

    device: GPUDevice

    Device that owns the buffer and must be used by its consuming pipeline.

    gpu_elapsed_ns?: Promise<number>

    Optional promise resolving to GPU generation time in nanoseconds.

    length: number

    Number of unsigned 32-bit words in the buffer.