web api instance method
WebGL2RenderingContext: isVertexArray() method
Available in workers
The WebGL2RenderingContext.isVertexArray() method of the
WebGL API returns true if the
passed object is a valid WebGLVertexArrayObject object.
Syntax
isVertexArray(vertexArray)
Parameters
vertexArray- : A
WebGLVertexArrayObject(VAO) object to test.
- : A
Return value
A GLboolean indicating whether the given object is a valid
WebGLVertexArrayObject object (true) or not
(false).
Examples
const vao = gl.createVertexArray();
gl.bindVertexArray(vao);
// …
gl.isVertexArray(vao);
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.