OpenGL mipmap:级别超出范围?

发布于 2024-12-07 19:54:08 字数 202 浏览 6 评论 0原文

我将更深入地了解 OpenGL 纹理 mipmap。

我注意到规范中允许 mipmap 级别小于 0 和大于 log2(maxSize) + 1

实际上,TexImage2D 不会指定 level 参数的错误。所以...可能不会使用标准纹理访问例程自动访问这些 mipmap...

如何有效地使用此功能?

I'm going deeper on OpenGL texture mipmapping.

I noticed in the specification that mipmap levels less than zero and greater than log2(maxSize) + 1 are allowed.

Effectively TexImage2D doesn't specify errors for level parameter. So... Probably those mipmaps are not accessed automatically using the standard texture access routines...

How could be effectively used this feature?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尾戒 2024-12-14 19:54:08

负面情况, glTexImage2D 的手册页 说:

GL_INVALID_VALUE is generated if level is less than 0.

对于 大于 log2(maxsize) 情况,规范说明了评级/纹理/纹理完整性中这些级别会发生什么。缺点是,是的,它们被忽略了。

For the negative case, the glTexImage2D's man page says:

GL_INVALID_VALUE is generated if level is less than 0.

For the greater than log2(maxsize) case, the specification says what happens to those levels in Raterization/Texturing/Texture Completeness. The short of it is that, yes, they are ignored.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文