web api instance method
WebGL2RenderingContext: bindVertexArray() method
Available in workers
The WebGL2RenderingContext.bindVertexArray() method of
the WebGL 2 API binds a
passed WebGLVertexArrayObject object to the buffer.
Syntax
bindVertexArray(vertexArray)
Parameters
vertexArray- : A
WebGLVertexArrayObject(VAO) object to bind.
- : A
Return value
None (undefined).
Examples
const vao = gl.createVertexArray();
gl.bindVertexArray(vao);
// …
// calls to bindBuffer or vertexAttribPointer
// which will be "recorded" in the VAO
// …
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.