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">
18 lines (17 loc) • 537 B
TypeScript
/**
* Helper for checking for WebGL support in the current environment.
*
* Results are cached after first call for better performance.
* @example
* ```ts
* // Basic WebGL support check
* if (isWebGLSupported()) {
* console.log('WebGL is available');
* }
* ```
* @param failIfMajorPerformanceCaveat - Whether to fail if there is a major performance caveat
* @returns True if WebGL is supported
* @category utils
* @standard
*/
export declare function isWebGLSupported(failIfMajorPerformanceCaveat?: boolean): boolean;