gpt4 book ai didi

GPU供应商之间的OpenGL确定性渲染

转载 作者:行者123 更新时间:2023-12-03 01:57:03 25 4
gpt4 key购买 nike

我目前正在使用 OpenGL 编写一个科学成像应用程序。

我想知道当我的代码(C++/OpenGL 和简单 GLSL)在不同硬件(ATI 与 NVidia、各个 NVidia 代)上执行时,OpenGL 渲染(就从 FBO 检索的像素而言)是否应该是完全确定的和各种操作系统)?

更准确地说,每次我在任何硬件(可以运行基本的 GLSL 和 OpenGL 3.0)上运行代码时,我都需要完全相同相同的像素缓冲区...

这可能吗?我应该考虑一些建议吗?

如果不可能,是否有特定品牌的显卡(也许是 Quadro?)可以在改变主机操作系统的情况下实现这一点?

最佳答案

来自 OpenGL 规范(版本 2.1 附录 A):

The OpenGL specification is not pixel exact. It therefore does not guarantee an exact match between images produced by different GL implementations. However, the specification does specify exact matches, in some cases, for images produced by the same implementation.

如果禁用所有抗锯齿和纹理,则很有可能在各个平台上获得一致的结果。但是,如果您需要抗锯齿或纹理或 100% 像素完美保证,请仅使用软件渲染:http://www.mesa3d.org/

关于GPU供应商之间的OpenGL确定性渲染,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7922526/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com