菜鸟教程小白 发表于 2022-12-11 18:28:58

c++ - glReadPixels 不适用于在 OpenGL ES 1.0 上获取深度


                                            <p><div>
            <aside class="s-notice s-notice__info post-notice js-post-notice mb16"role="status">
      <div class="d-flex fd-column fw-nowrap">
            <div class="d-flex fw-nowrap">
                <div class="flex--item wmn0 fl1 lh-lg">
                  <div class="flex--item fl1 lh-lg">
                        <b>这个问题在这里已经有了答案</b>:
                        
                  <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>OpenGL ES(任何 API 版本)不支持您尝试的操作 - 无法在深度缓冲区上使用 <code>glReadPixels</code>。</p>

<p>一般还请注意,将 <code>glReadPixels</code> 用于任何真正的 3D 游戏作为主渲染循环的一部分是一个“非常糟糕的主意” - 它会强制执行管道刷新,这将完全影响您的性能。</p></p>
                                   
                                                <p style="font-size: 20px;">关于c&#43;&#43; - glReadPixels 不适用于在 OpenGL ES 1.0 上获取深度,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/41437576/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/41437576/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: c&#43;&#43; - glReadPixels 不适用于在 OpenGL ES 1.0 上获取深度