Skip to main content

ANGLE_instanced_arrays

The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.

MDN Reference

Methods

drawArraysInstancedANGLE()

drawArraysInstancedANGLE(
mode,
first,
count,
primcount
): void;

The ANGLE_instanced_arrays.drawArraysInstancedANGLE() method of the WebGL API renders primitives from array data like the gl.drawArrays() method. In addition, it can execute multiple instances of the range of elements.

MDN Reference

Parameters

ParameterType
modenumber
firstnumber
countnumber
primcountnumber

Returns

void


drawElementsInstancedANGLE()

drawElementsInstancedANGLE(
mode,
count,
type,
offset,
primcount
): void;

The ANGLE_instanced_arrays.drawElementsInstancedANGLE() method of the WebGL API renders primitives from array data like the gl.drawElements() method. In addition, it can execute multiple instances of a set of elements.

MDN Reference

Parameters

ParameterType
modenumber
countnumber
typenumber
offsetnumber
primcountnumber

Returns

void


vertexAttribDivisorANGLE()

vertexAttribDivisorANGLE(index, divisor): void;

The ANGLE_instanced_arrays.vertexAttribDivisorANGLE() method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ext.drawArraysInstancedANGLE() and ext.drawElementsInstancedANGLE().

MDN Reference

Parameters

ParameterType
indexnumber
divisornumber

Returns

void

Properties

VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE

readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 35070;