You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importWebGLDebugUtilfrom"webgl-debug";/** * Use as THIRD argument to makeDebugContext: * makeDebugContext(gl, undefined, logGLCall); * @see webgl-debug.d.ts */exportfunctionlogGLCall(functionName: any, ...args: any): void{console.log("gl."+functionName+"("+WebGLDebugUtil.glFunctionArgsToString(functionName,args)+")");}
The text was updated successfully, but these errors were encountered:
Leaving this here as a potential help to other developers (or future me, hi!). It could be fleshed out to become better, by someone else.
It's possible to use this library with TypeScript, at least partially, by using these rudimentary definitions:
webgl-debug.d.ts
:webgl-debug-util.ts
:The text was updated successfully, but these errors were encountered: