Direct3D9 是否支持四元组?
我在 Direct3D9 帮助中阅读(强调我的):
Direct3D 9 支持点、线、三角形和网格图元。这些已扩展为支持线性以外的高阶插值。虽然三角形和直线具有空间范围,但到目前为止它们都是使用线性插值来渲染的。在 Direct3D 9 中,Direct3D 支持使用高阶(最多五次)插值来渲染这些基元类型。 此外,现在支持新的四元类型。这种新类型也可以通过高阶插值来渲染。
这让我相信 Direct3D9 支持四边形,但我在 Direct3D9 包含文件中找不到任何类似 D3DPT_QUADLIST
的内容,所以帮助是错误的,还是我在这里遗漏了一些明显的东西?
I read in the Direct3D9 help (emphasis mine) :
Direct3D 9 supports points, lines, triangles, and grid primitives. These have been extended to support higher-order interpolation beyond linear. While triangles and lines have spatial extent, until now they were both rendered using linear interpolation. In Direct3D 9, Direct3D supports rendering of these primitive types using higher order, up to quintic, interpolation. Furthermore, a new quad primitive type is now supported. This new type can also be rendered with higher-order interpolation.
This leads me to believe that Direct3D9 supports quads, but I can't find anything resembling D3DPT_QUADLIST
in the Direct3D9 include files, so is the help wrong, or am I missing something obvious here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
很抱歉这么晚才回复,但我有一种感觉,来自 OpenGL 背景的人会偶然发现这一点并感到困惑。
存在这种情况的实际原因是因为它基本上是 Direct3D 11 中现有的曲面细分着色器的早期版本。然而,对它的支持非常少,因此它的文档非常少,并且在 D3D10 中基本上被删除了。
如果您好奇或想要了解更多信息,请查看 此处 或搜索“使用高阶基元 (Direct3D9)”(如果文章已移动,正如它们经常出现的那样)。
Sorry for the even later reply, but I have a feeling someone coming from an OpenGL background will stumble onto this and get confused.
The actual reason that's there is because it was basically an early version of the tessellation shaders we now have in Direct3D 11. There was -very- little support for it, however, so it was very poorly documented and essentially dropped in D3D10.
If you're curious or want more information, check here or do a search for "Using Higher-Order Primitives (Direct3D9) if the article's moved, as they so often seem to.
抱歉回复晚了,我在寻找其他东西时遇到了这个。
Direct3D9 不支持 Quad Lists,这实际上可能是早期文档,或者可能是其他系统(例如 Xbox 360)的文档不小心泄露出来的。
Sorry for the late answer, I ran across this searching for something else.
Direct3D9 doesn't support Quad Lists, this may actually be early documentation, or perhaps documentation from another system (such as Xbox 360) That accidentally leaked over.