/Web APIs


The WebGLVertexArrayObject interface is part of the WebGL 2 API, represents vertex array objects (VAOs) pointing to vertex array data, and provides names for different sets of vertex data.

WebGLObject WebGLVertexArrayObject

When working with WebGLVertexArrayObject objects, the following methods are useful:

Note: The OES_vertex_array_object extension allows you to use vertex array objects in a WebGL 1 context.


const vao = gl.createVertexArray();

// …

// calls to bindBuffer or vertexAttribPointer
// which will be "recorded" in the VAO

// …


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
WebGLVertexArrayObject 56 79 51 No 43 15 58 58 51 43 15 7.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.