如何使用直接状态访问将元素缓冲区数组“绑定"到顶点数组对象? [英] How to 'bind' a element buffer array to vertex array object using direct state access?

查看:102
本文介绍了如何使用直接状态访问将元素缓冲区数组“绑定"到顶点数组对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于其他缓冲区,有如下功能:

For the other buffers there are functions like:

glVertexArrayVertexAttribOffsetEXT(
    this->handle,               // vao handle
    vbo.getHandle(),            // vbo handle
    index,                      // specifies the index of the generic vertex attribute to be modified.
    size,                       // number of components per generic vertex attribute
    vbo.getType(),              // specifies the data type of each component in the array
    normalized,                 // specifies whether fixed-point data values should be normalized
    stride,                     // specifies the byte offset between consecutive generic vertex attributes
    offset                      // specifies a pointer to the first component of the first generic vertex attribute in the array
    );

但是我找不到将元素缓冲区绑定到vao的方法.还是我在那里想念东西?

But i can't find a method for binding the element buffer to the vao. Or am i missing something there?

PS:添加顶点数组对象和直接状态访问标签有意义吗?

PS: does it make sense to add vertex-array-object and direct-state-access tags?

推荐答案

您找不到它,因为它不属于它.

You can't find it because it's not part of it.

DSA扩展是在VAO成为GL3.0的一部分之前设计的,后来又进行了修改以与之交互.我不会感到惊讶,这是规范中的一个漏洞.随时联系规范所有者(在扩展名顶部列出) )

The DSA extension was designed prior to VAO being part of GL3.0, and modified later on to interact with it. I would not be surprised it's a hole in the specification. Feel free to contact the specification owner (listed at the top of the extension)

这篇关于如何使用直接状态访问将元素缓冲区数组“绑定"到顶点数组对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆