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.
import { init, cleanup, gpuName } from "wgblas";
await init();
const { description, device } = gpuName();
console.log("description:", description, "device:", device);
if (typeof process !== "undefined") cleanup();
Returns the GPU device name from the WebGPU adapter info. Must be called after
init().