OpenGL mipmap:级别超出范围?
我将更深入地了解 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
负面情况, glTexImage2D 的手册页 说:
对于
大于 log2(maxsize)
情况,规范说明了评级/纹理/纹理完整性
中这些级别会发生什么。缺点是,是的,它们被忽略了。For the negative case, the glTexImage2D's man page says:
For the
greater than log2(maxsize)
case, the specification says what happens to those levels inRaterization/Texturing/Texture Completeness
. The short of it is that, yes, they are ignored.