Function debug

  • Replace each method on the given WebGL2RenderingContext with a version that logs diagnostic information to the given console.

    Parameters

    • gl: WebGL2RenderingContext

      The rendering context to debug.

    • out: Console = console

      The console to log diagnostic information to.

    Returns DebugInfo

    An object that controls the debugger.