Web/API/ANGLE instanced arrays/vertexAttribDivisorANGLE
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().
Note: When using WebGL2, this method is available as gl.vertexAttribDivisor() by default.
Syntax
void ext.vertexAttribDivisorANGLE(index, divisor);
Parameters
index- A
GLuintspecifying the index of the generic vertex attributes. divisor- A
GLuintspecifying the number of instances that will pass between updates of the generic attribute.
Return value
None.
Examples
var ext = gl.getExtension('ANGLE_instanced_arrays');
ext.vertexAttribDivisorANGLE(0, 2);
Specifications
| Specification | Status | Comment |
| ANGLE_instanced_arraysThe definition of 'ANGLE_instanced_arrays' in that specification. | Recommendation | Initial definition. |
Browser compatibility
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
vertexAttribDivisorANGLE
|
Chrome
Full support 32 |
Edge
Full support 12 |
Firefox
Full support 47 |
IE
Full support 11 |
Opera
Full support 19 |
Safari
Full support 7 |
WebView Android
Full support 4.4 |
Chrome Android
Full support 32 |
Firefox Android
Full support Yes |
Opera Android
Full support 19 |
Safari iOS
Full support 8 |
Samsung Internet Android
Full support 2.0 |
Legend
- Full support
- Full support
See also
ext.drawArraysInstancedANGLE()ext.drawElementsInstancedANGLE()WebGLRenderingContext.drawArrays()WebGLRenderingContext.drawElements()WebGL2RenderingContext.drawArraysInstanced()WebGL2RenderingContext.drawElementsInstanced()WebGL2RenderingContext.vertexAttribDivisor()
ANGLE_instanced_arrays.vertexAttribDivisorANGLE() by Mozilla Contributors is licensed under CC-BY-SA 2.5.