Перевод не завершен. Пожалуйста, помогите перевести эту статью с английского.

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.

WebGL extensions are available using the WebGLRenderingContext.getExtension() method. For more information, see also Using Extensions in the WebGL tutorial.

Availability: This extension is only available to WebGL1 contexts. In WebGL2, the functionality of this extension is available on the WebGL2 context by default and the constants and methods are available without the "ANGLE" suffix.

Despite the name "ANGLE", this extension works on any device if the hardware supports it and not just on Windows when using the ANGLE library. "ANGLE" just indicates that this extension has been written by the ANGLE library authors.


This extension exposes one new constant, which can be used in the gl.getVertexAttrib() method:

Returns a GLint describing the frequency divisor used for instanced rendering when used in the gl.getVertexAttrib() as the pname parameter.


This extension exposes three new methods.


Behaves identically to gl.drawArrays() except that multiple instances of the range of elements are executed, and the instance advances for each iteration.


Behaves identically to gl.drawElements() except that multiple instances of the set of elements are executed and the instance advances between each set.


Modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ext.drawArraysInstancedANGLE() and ext.drawElementsInstancedANGLE().


Enabling the extension:

var ext = gl.getExtension('ANGLE_instanced_arrays');


Specification Status Comment
Определение 'ANGLE_instanced_arrays' в этой спецификации.
Рекомендация Initial definition.

Совместимость браузеров

ВозможностьChromeEdgeFirefoxInternet ExplorerOperaSafari
Базовая поддержка ? ?3311 ? ?
drawArraysInstancedANGLE ?123311 ? ?
drawElementsInstancedANGLE ?123311 ? ?
vertexAttribDivisorANGLE ?123311 ? ?
ВозможностьAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Базовая поддержка ? ? ? ? ? ? ?
drawArraysInstancedANGLE ? ? ? ? ? ? ?
drawElementsInstancedANGLE ? ? ? ? ? ? ?
vertexAttribDivisorANGLE ? ? ? ? ? ? ?

Смотрите также

Метки документа и участники

Внесли вклад в эту страницу: RandomIt
Обновлялась последний раз: RandomIt,