Baseline Widely available
Note: This feature is available in Web Workers.
The WebGL2RenderingContext.createVertexArray()
method of the WebGL 2 API creates and initializes a WebGLVertexArrayObject
object that represents a vertex array object (VAO) pointing to vertex array data and which provides names for different sets of vertex data.
None.
Return valueA WebGLVertexArrayObject
representing a vertex array object (VAO) which points to vertex array data.
const vao = gl.createVertexArray();
gl.bindVertexArray(vao);
// â¦
// calls to bindBuffer or vertexAttribPointer
// which will be "recorded" in the VAO
// â¦
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4