Get GPU information on Android without SurfaceView

On Android, is there a way to get GPU information without creating a SurfaceView? I don’t plan to use OpenGL to draw anything, but I only need to obtain hardware information such as the vendor, OpenGL ES version, and available extensions.
Sorry, I don’t know how to use Android, but the function glGetString allows you to access OpenGL information. Below is a sample C style code, which will output the extensions supported by your hardware, I hope you can adapt to Android:

< /p>

void PrettyPrintExtensions(){
std::string extensions = (const char*) glGetString(GL_EXTENSIONS);
char* extensionStart = &extensions[0] ;
char** extension = &extensionStart;
std::cout << "Supported OpenGL ES Extensions:" << std::endl;
while (*extension)
std ::cout <<' ' << strsep(extension, "") << std::endl;
std::cout << std::endl;
}

< p>By changing the parameters of glGetString, you can also access Vendor, renderer and version.
Please refer to:

http://www.khronos.org/opengles/sdk/1.1/docs/ man/glGetString.xml

On Android, is there a way to get GPU information without creating a SurfaceView? I don’t plan to use OpenGL to draw anything, but I only need to get hardware information such as vendor, OpenGL ES version, available extensions, etc.

Sorry, I don’t know how to use Android, But the function glGetString allows you to access OpenGL information. Below is a sample C style code, which will output the extensions supported by your hardware, I hope you can adapt to Android:

void PrettyPrintExtensions(){
std::string extensions = (const char*) glGetString(GL_EXTENSIONS);
char* extensionStart = &extensions[0];
char** extension = &extensionStart;
std::cout << "Supported OpenGL ES Extensions:" << std::endl;
while (*extension)
std::cout <<' ' << strsep (extension, "") << std::endl;
std::cout << std::endl;
}

By changing the parameters of glGetString, you can also access Vendor, renderer and version.
Please refer to:

http://www.khronos.org/opengles/sdk/1.1/docs/man/glGetString.xml

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1535 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.