Is there a way to detect programmatically GPU?

814 views
Skip to first unread message
Message has been deleted

elio francesconi

unread,
Jul 2, 2012, 3:53:51 AM7/2/12
to android-d...@googlegroups.com, android-platform
Hi all, I'm struggling to find a way to detect GPU before start using opengl and having a crash.
is it possible to detect it programmatically?
Thanks
Elio

elio francesconi

unread,
Jul 2, 2012, 5:32:34 AM7/2/12
to android-...@googlegroups.com
Thank you for the quick reply.
so as you suggest, on the current graphical context I make this call:
String renderer = gl.glGetString(GL10.GL_RENDERER);
if renderer returns null, I can assume that no GPU is present. correct?

Thanks
Elio

2012/7/2 F.Stein <dr.fran...@gmail.com>
Hi, elio.

Yes, it's posable, by means of OpenGL interface. :) Use glGetString() with GL_VENDOR to determinate GPU vendor name and GL_RENDERER to determinate GPU name. Just do it as soon as gl context is made as current.


понедельник, 2 июля 2012 г., 14:53:51 UTC+7 пользователь elio написал:
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/te7cFiR3NxAJ.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

Reply all
Reply to author
Forward
0 new messages