ANGLE_instanced_arrays: vertexAttribDivisorANGLE() method
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()
.
Syntax
vertexAttribDivisorANGLE(index, divisor)
Parameters
-
index
-
A GLuint
specifying the index of the generic vertex attributes.
-
divisor
-
A GLuint
specifying the number of instances that will pass between updates of the generic attribute.
Return value
Examples
const ext = gl.getExtension("ANGLE_instanced_arrays");
ext.vertexAttribDivisorANGLE(0, 2);
Specifications
Browser compatibility
|
Desktop |
Mobile |
|
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
WebView Android |
Chrome Android |
Firefox for Android |
Opera Android |
Safari on IOS |
Samsung Internet |
vertexAttribDivisorANGLE |
30 |
12 |
47 |
11 |
17 |
8 |
4.4 |
30 |
47 |
18 |
8 |
2.0 |
See also