Can Vertex Array Objects (VAOs) be shared across EAGLContexts in OpenGL ES?

前端 未结 1 1818
野趣味
野趣味 2021-01-01 14:44

Spoiler: I\'m fairly confident that the answer is NO, but that\'s only after a day of very frustrated debugging. Now I would like to know if that is indeed the

相关标签:
1条回答
  • 2021-01-01 15:37

    According to this, OpenGL-ES explicitly disallows sharing of VAO objects:

    Should vertex array objects be sharable across multiple OpenGL ES contexts?

    RESOLVED: No. The OpenGL ES working group took a straw-poll and agreed that compatibility with OpenGL and ease of implementation were more important than creating the first non-shared named object in OpenGL ES.

    As you noted, VBOs are still shareable, so you just have to create a VAO for each context that binds the shared VBO.

    0 讨论(0)
提交回复
热议问题