In Chrome, open your JavaScript console and you will find WebGLActiveInfo as a global variable. I’ve tried looking for documentation on this function but nothing comes up.
Naively calling it will produce a TypeError: Illegal constructor, which is frustrating because it’s a black box:
function WebGLActiveInfo() { [native code] }
What does this function do? How can I use it?
It’s not a function, it’s the name of a native Object. Same as
WebGLRenderingContext,WebGLTexture,Blob, orXMLHTTPRequest. Type any of those and you’ll get the same function signature.WebGLActiveInfoobjects are returned fromgl.getActiveUniformandgl.getActiveAttrib