Skip to content

Lower level

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 ​

ParameterTypeDescription
glWebGL2RenderingContextThe WebGL2 context.
programWebGLProgram-

Returns ​

Record<string, ActiveUniform>