Back to Content

WebGLActiveInfo: size property

files/en-us/web/api/webglactiveinfo/size/index.md

latest656 B
Original Source

{{APIRef("WebGL")}}{{AvailableInWorkers}}

The read-only WebGLActiveInfo.size property is a {{jsxref("Number")}} representing the size of the requested data returned by calling the {{domxref("WebGLRenderingContext.getActiveAttrib()", "getActiveAttrib()")}} or {{domxref("WebGLRenderingContext.getActiveUniform()", "getActiveUniform()")}} methods.

Examples

js
const activeAttrib = gl.getActiveAttrib(program, index);
activeAttrib.size;

const activeUniform = gl.getActiveUniform(program, index);
activeUniform.size;

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("WebGLActiveInfo")}}