const numAttribs = gl.getProgramParameter(program, gl.ACTIVE_ATTRIBUTES);
for (let i = 0; i < numAttribs; ++i) {
const info = gl.getActiveAttrib(program, i);
console.log("name:", info.name, "type:", info.type, "size:", info.size);
}WebGLRenderingContext: getActiveAttrib() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.