ANGLE_instanced_arrays.vertexAttribDivisorANGLE()

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!
この記事を English (US) で読むこともできます。

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 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

None.

Examples

var ext = gl.getExtension('ANGLE_instanced_arrays');
ext.vertexAttribDivisorANGLE(0, 2);

Specifications

Specification Status Comment
ANGLE_instanced_arrays
The definition of 'ANGLE_instanced_arrays' in that specification.
Recommendation Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
vertexAttribDivisorANGLEChrome Full support YesEdge Full support 12Firefox Full support 33IE Full support 11Opera Full support YesSafari ? WebView Android Full support YesChrome Android Full support YesEdge Mobile ? Firefox Android ? Opera Android Full support YesSafari iOS ? Samsung Internet Android Full support Yes

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

ドキュメントのタグと貢献者

このページの貢献者: mdnwebdocs-bot, fscholz, nmve, teoli
最終更新者: mdnwebdocs-bot,