This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

如何在Shader中使能mali-G72的4XMSAA功能

如题,或者还有其它方法使用MSAA,另外咨询一下,mali-G72如果开启4x MSAA,对性能的影响是怎么,或者8x/16x?

是否有Sample code可以参考?

  • OpenGL ES和EGL规定了如何打开4X MSAA,和具体的GPU型号没有关系。

    G72是支持标准的OpenGL ES标准,打开 4xMSAA也是OpenGL ES的标准方法。

    在EGL 1.5的标准中第“3.4 Configuration Management”节有:“EGL_SAMPLE_BUFFERS:number of multisample buffers”, "EGL_SAMPLES: number of samples per pixel"。在OpenGL ES 3.2的标准“13.4 Multisampling”节中有:“If the value of SAMPLE_BUFFERS (see section 9.2.3.1) is one, the rasteriza- tion of all primitives is changed, and is referred to as multisample rasterization.”。

    OpenGL ES和EGL的Spec可以在Khronos的官网https://www.khronos.org 下载。

    Mali G72在打开4X MSAA情况下,由于Mali在构架上的优化,性能基本没有影响。