Curyous
Curyous

Reputation: 8866

Is it possible to use more than 1 VertexArrayObject in a draw call?

The subject line says it all really, I just assumed that you could use more than 1, but I can't get it to work with more than one in OpenGL ES 2.0. I thought that maybe for fine-grained sharing over multiple draw calls, using more than 1 VertexArrayObject would be useful, but I can't think of a particular use case right now.

Can it be done?

Upvotes: 0

Views: 73

Answers (1)

Mārtiņš Možeiko
Mārtiņš Možeiko

Reputation: 12927

No, there can not be more that one VAO bound at the time. That is the purpose of VAO - to simplify binding of vertex attributes just with the one call. If you want more control on individual attribute binding then don't use VAO, just bind the vertex attributes individually.

Upvotes: 1

Related Questions