Does the Android emulator 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
Does the Visual Studio emulator for Android support OpenGL ES 3.0?
Someone has found the answer for me: OpenGLES 3.0 hasn't been supported.
from https://blogs.msdn.microsoft.com/visualstudioalm/2015/02/23/the-visual-studio-emulator-for-android-in-vs2015-ctp6/
... the VS Emulator for Android can now render apps that make use of OpenGL ES > up to version 2.0. .... (If you’re curious, under the hood we’re forwarding
OpenGL ES calls to the host machine’s GPU and using ANGLE to translate the
calls to DirectX).
from ANGLE (https://chromium.googlesource.com/angle/angle/+/master/README.md)
still not fully support GLES3.0 (in progress).
so It may cause the error on shader compilation on the emulator.
Update:
A staff member of MS told me in another site that the driver of the emulator hasn't supported OpenGLES 3.0. So currently the emulator won't support OpenGL ES 3.0 even if ANGLE does support.
Failed to create OpenGL ES 3.0 Context
OpenGL ES 3.0 isn't supported on the Android emulator.
See:
https://developer.android.com/ndk/guides/stable_apis.html
Specifically:
Note: The Android emulator does not support OpenGL ES 3.0 hardware
emulation. Running and testing code that uses this API requires a real
device with hardware that can support OpenGL ES 3.0
Does the Android Emulator support OpenGL ES 2.0?
Google released a new version with native x86 processor support, which sped things up a bit. It also supports OpenGL ES 2.0,faster-emulator-with-better-hardware :
As a bonus, since we’re now supporting OpenGL ES 2.0, your OpenGL
games can now run inside the emulator.
Note: When creating a virtual machine, make sure to select the “GPU emulation” option from the hardware menu if you want to take advantage of the new features.
Reference:
liliputing
Related Topics
Android: Detect Softkeyboard Open
Set Language to French in Android Datepickerdialog
Android - Detecting Application Launch from Home or History
Sdcard Content Exist But Cant See Them
Checkbox Gets Unchecked on Scroll in a Custom Listview
Android - Firebase Quickstart Email/Password Auth Demo Doesn't Work
Android Opengl .Obj File Loader
Room Cannot Verify the Data Integrity
Android - Google Play Like Tabs
How to Prevent Multiple Toast Overlaps
Should Use "Sp" Instead of "Dp" for Text Sizes
How to Set Delay in Android Onclick Function
Android 2.1 View's Getdrawingcache() Method Always Returns Null
Picasso Loading of Image Spawned Inside Asynctask
Java.Lang.Noclassdeffounderror: Org.Ksoap2.Serialization.Soapobject