pixi.js
Version:
<p align="center"> <a href="https://pixijs.com" target="_blank" rel="noopener noreferrer"> <img height="150" src="https://files.pixijs.download/branding/pixijs-logo-transparent-dark.svg?v=1" alt="PixiJS logo"> </a> </p> <br/> <p align="center">
17 lines (16 loc) • 593 B
TypeScript
/// <reference types="@webgpu/types" />
/**
* Helper for checking for WebGPU support in the current environment.
* Results are cached after first call for better performance.
* @example
* ```ts
* // Basic WebGPU support check
* const hasWebGPU = await isWebGPUSupported();
* console.log('WebGPU available:', hasWebGPU);
* ```
* @param options - The options for requesting a GPU adapter
* @returns Promise that resolves to true if WebGPU is supported
* @category utils
* @standard
*/
export declare function isWebGPUSupported(options?: GPURequestAdapterOptions): Promise<boolean>;