Helper for checking for WebGPU support in the current environment. Results are cached after first call for better performance.
The options for requesting a GPU adapter
Promise that resolves to true if WebGPU is supported
// Basic WebGPU support checkconst hasWebGPU = await isWebGPUSupported();console.log('WebGPU available:', hasWebGPU); Copy
// Basic WebGPU support checkconst hasWebGPU = await isWebGPUSupported();console.log('WebGPU available:', hasWebGPU);
Helper for checking for WebGPU support in the current environment. Results are cached after first call for better performance.