Is there any way to get GPU information?

后端 未结 4 1226
我寻月下人不归
我寻月下人不归 2020-12-30 01:46

I know how to get CPU info inside /proc/, but is there any way to get GPU info? Something like the CPU one?

4条回答
  •  独厮守ぢ
    2020-12-30 02:18

    There is, you can get GPU information by using OpenGL:

        Log.d("GL", "GL_RENDERER = "   + gl.glGetString( GL10.GL_RENDERER   ));
        Log.d("GL", "GL_VENDOR = "     + gl.glGetString( GL10.GL_VENDOR     ));
        Log.d("GL", "GL_VERSION = "    + gl.glGetString( GL10.GL_VERSION    ));
        Log.i("GL", "GL_EXTENSIONS = " + gl.glGetString( GL10.GL_EXTENSIONS ));
    

    For more information see: https://developer.android.com/guide/topics/graphics/opengl.html

提交回复
热议问题