wgblas
    Preparing search index...
    • The GPU buffer a routine reads an operand from: a GpuVector's or GpuMatrix's own, or else the host array uploaded into a new one, which the caller destroys when done (see uploadBuffer).

      Tells the two apart by ArrayBuffer.isView (true for every typed array) rather than instanceof, since the GPU classes import this module.

      Parameters

      • device: GPUDevice
      • operand:
            | Float32Array<ArrayBufferLike>
            | Uint32Array<ArrayBufferLike>
            | Int32Array<ArrayBufferLike>
            | { _buf: GPUBuffer }
      • Optionallabel: string

        the upload's debug label

      • Optionalreadback: boolean = false

        add COPY_SRC to an upload, for an output read back afterwards

      Returns GPUBuffer