KhronosGroup / KhronosGroup/OpenGL-API

Ambiguous requirement for non-zero indirect buffer object in core profile

未关闭
#65 2 条评论 0 个 reaction 已指派 1 人 已被 @cubanismo 认领 在 GitHub 查看
主要语言
没有语言数据
星标
42
派生
8
PR 合并指标
30 天内没有已合并 PR

描述

Section 10.3.11 of the OpenGL 4.6 spec defines "Indirect commands in Buffer Objects", or the GL_DRAW_INDIRECT_BUFFER/GL_DISPATCH_INDIRECT_BUFFER buffer targets. It refers readers to section 10.3.9 for general properties of the mechanism. Section 10.3.9 notes behavior is undefined if buffer object zero is bound to an enabled array at draw time, but it is not clear from the language in section 10.3.11 if this property is inherited by indirect buffers. Notably, section 10.3.10 duplicates the zero-object undefined behavior property while referring to section 10.3.9 for general behavior, while section 10.3.11 does not, perhaps implying it is well-defined and supported for indirect commands to use client memory for their indirect command memory. Further, no error case is defined for this situation in the *Draw*Indirect commands. The only clarifying point that indicates to the contrary is that the compatibility profile spec contains additional language:

"If zero is bound to DRAW_INDIRECT_BUFFER, the corresponding *Draw*Indirect commands instead source their arguments directly from the indirect pointer in client memory"

Which clearly defines the behavior only in the compatibility profile, implying it is intended to be undefined in the core profile.

To clarify this in the core profile spec, I think an explicit error case should be added to the *Draw*Indirect commands (probably in DrawArraysIndirect, so it will be inherited by all of them), and the "undefined behavior" language from section 10.3.9/10.3.10 should be duplicated into section 10.3.11 as well.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。