Android 模拟器是否支持 OpenGL ES 3.0? [英] Does the Android emulator support OpenGL ES 3.0?

查看:23
本文介绍了Android 模拟器是否支持 OpenGL ES 3.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道模拟器

gles3jni 示例应用来自NDK 是一个不错的选择.

如果失败:

java.lang.RuntimeException: createContext failed: EGL_BAD_CONFIG

也尝试先在主机上运行:

echo "GLESDynamicVersion = on" >>~/.android/advancedFeatures.ini

由于开发人员目前正在将受支持的主机 GPU 列入白名单,并将其覆盖,另请参阅:https://issuetracker.google.com/issues/68496715

I know that the emulator has supported OpenGL ES 2.0 as of SDK tools 17 and Android 4.0.3, but that was introduced back in April 2012.

Does the Android emulator support OpenGL ES 3.0, or are we still waiting on that?
If not, does any other third-party emulator/simulator (e.g. Genymotion) support OpenGL ES 3.0?

解决方案

The latest Android Emulator now supports OpenGL ES 3.0. To use OpenGL ES 3.0, your development machine needs a host GPU graphics card that supports OpenGL 3.2 or higher on Microsoft® Windows® or Linux.

See: https://android-developers.googleblog.com/2017/05/android-studio-3-0-canary1.html

The gles3jni sample app from the NDK is a good option to try it out.

If it fails with:

java.lang.RuntimeException: createContext failed: EGL_BAD_CONFIG

also try to run first on host:

echo "GLESDynamicVersion = on" >> ~/.android/advancedFeatures.ini

as the devs are currently whitelisting supported host GPUs, and that overrides it, see also: https://issuetracker.google.com/issues/68496715

这篇关于Android 模拟器是否支持 OpenGL ES 3.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆