pixi-jsFunctions
Function: isWebGPUSupported()
> isWebGPUSupported(options?): Promise<boolean>
Defined in: node_modules/pixi.js/lib/utils/browser/isWebGPUSupported.d.ts:15
Helper for checking for WebGPU support in the current environment. Results are cached after first call for better performance.
Parameters
options?
GPURequestAdapterOptions
The options for requesting a GPU adapter
Returns
Promise<boolean>
Promise that resolves to true if WebGPU is supported
Example
// Basic WebGPU support check
const hasWebGPU = await isWebGPUSupported();
console.log('WebGPU available:', hasWebGPU);