wgblas
    Preparing search index...

    Function gpuName

    • Returns the GPU device name from the WebGPU adapter info. Must be called after init().

      import { init, cleanup, gpuName } from "wgblas";

      await init();
      const { description, device } = gpuName();
      console.log("description:", description, "device:", device);
      if (typeof process !== "undefined") cleanup();

      Parameters

      • Optionaldevice: GPUDevice

        which device to report on; defaults to the one from the first init() call. Pass it explicitly when driving more than one GPU.

      Returns { description: string; device: string }