getActiveUniforms()
ts
function getActiveUniforms(gl, program): Record<string, ActiveUniform>;Defined in: getActiveUniforms.js:20
Returns every active uniform of a linked program, by name. Array uniforms are reported by WebGL as name[0]; they're available under both name[0] and the plain name. Members of uniform blocks are left out.
Parameters
| Parameter | Type | Description |
|---|---|---|
gl | WebGL2RenderingContext | The WebGL2 context. |
program | WebGLProgram | - |
Returns
Record<string, ActiveUniform>