Opengl统一行为(Opengl uniform behaviour)

编程入门 行业动态 更新时间:2024-10-28 20:25:00
Opengl统一行为(Opengl uniform behaviour)

我注意到一些在opengl文档中没有很好解释的东西。 如果我错了,请纠正我。

如果程序不是opengl当时正在使用的程序,则无法设置统一的值。 那会产生错误。

如果在程序A中设置了统一的值,则切换到程序B,然后切换回程序A,该值保持不变。 这可靠吗?

无法为当时未使用的程序设置统一值。 有解决方法吗?

I've noticed some things that aren't well explained in the opengl docs. Please correct me if I'm wrong.

You can't set the value of a uniform if the program isn't the one that opengl is using at that moment. That will generate an error.

If you set the value of a uniform in program A, then switch to program B, then switch back to program A, the value stays. Is this reliable?

There is no way to set a uniform value to a program that isn't being used at that moment. Is there a workaround?

更多推荐

本文发布于:2023-04-29 11:41:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1336241.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Opengl   uniform   behaviour

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!