pixi-jsFunctions
Function: isWebGLSupported()
> isWebGLSupported(failIfMajorPerformanceCaveat?): boolean
Defined in: node_modules/pixi.js/lib/utils/browser/isWebGLSupported.d.ts:17
Helper for checking for WebGL support in the current environment.
Results are cached after first call for better performance.
Parameters
failIfMajorPerformanceCaveat?
boolean
Whether to fail if there is a major performance caveat
Returns
boolean
True if WebGL is supported
Example
// Basic WebGL support check
if (isWebGLSupported()) {
console.log('WebGL is available');
}