wgblas
    Preparing search index...
    • Packs an array of typed scalar values into a uniform buffer aligned to 16 bytes. Each entry specifies the value and its WGSL type ("f32", "u32", or "i32"). The order of entries must match the field order in the shader's Params struct.

      Parameters

      • params: { type: "f32" | "u32" | "i32"; value: number }[]
      • Optionallabel: string = "blas-params"

        debug label visible in browser DevTools GPU inspection

      Returns GPUBuffer