Firefox Tomorrow

web api instance method

WebGL2RenderingContext: isVertexArray() method

View on MDN ↗

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

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.

See also