Destroys the WebGPU device, releases the adapter, resets benchmark state, and fires all internal
cleanup callbacks (e.g. releasing cached GPU pipelines and buffers). Call when done (required in Node.js to prevent crash on exit).
Returns void
Example
import { init, cleanup, gpuName } from"wgblas";
awaitinit(); console.log("GPU:", gpuName().description); if (typeofprocess !== "undefined") cleanup(); // Node.js only — browser cleanup is automatic
Destroys the WebGPU device, releases the adapter, resets benchmark state, and fires all internal cleanup callbacks (e.g. releasing cached GPU pipelines and buffers). Call when done (required in Node.js to prevent crash on exit).