ANGLE_instanced_arrays: vertexAttribDivisorANGLE() method
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since June 2016.
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
js
vertexAttribDivisorANGLE(index, divisor)
Parameters
Return value
None (undefined
).
Examples
js
const ext = gl.getExtension("ANGLE_instanced_arrays");
ext.vertexAttribDivisorANGLE(0, 2);
Specifications
Specification |
---|
WebGL ANGLE_instanced_arrays Khronos Ratified Extension Specification |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
vertexAttribDivisorANGLE |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on 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.