wgblas
    Preparing search index...
    • Creates a GPU storage buffer and uploads data into it via mapped-at-creation. The mapped view is constructed from data's own typed-array constructor, so bits are copied as-is regardless of element type (e.g. a Uint32Array's raw bit patterns are preserved — critical for dasum's aux half, which must never pass through a Float32Array view and risk NaN-bit-pattern canonicalization).

      Parameters

      • data:
            | Float32Array<ArrayBufferLike>
            | Uint32Array<ArrayBufferLike>
            | Int32Array<ArrayBufferLike>
      • Optionallabel: string = "blas-input"

        debug label visible in browser DevTools GPU inspection

      • Optionalreadback: boolean = false

        add COPY_SRC so the buffer can be copied to a readback buffer

      Returns GPUBuffer

      if data.byteLength exceeds the device's maxStorageBufferBindingSize