pixi.js
    Preparing search index...

    Function isWebGLSupported

    • Helper for checking for WebGL support in the current environment.

      Results are cached after first call for better performance.

      Parameters

      • OptionalfailIfMajorPerformanceCaveat: boolean

        Whether to fail if there is a major performance caveat

      Returns boolean

      True if WebGL is supported

      // Basic WebGL support check
      if (isWebGLSupported()) {
      console.log('WebGL is available');
      }