Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the Graphics Card Model Name in OpenGL or Win32?

I would like to know the Graphics Card Model Name in OpenGL or in Win32 cuz I have a memory leaks bug on a specific kind of Graphics Card (only Intel HD not all Intel).

This is the bug : https://software.intel.com/en-us/forums/developing-games-and-graphics-on-intel/topic/280679

The Vendor Name in OpenGL is not enough. Does someone know a way to get the name of the graphical card different than using Direct3D ? Or do you think that I can use D3D and OpenGL together? Get the graphics card model?

like image 840
John Smith Avatar asked Feb 15 '17 09:02

John Smith


People also ask

Is OpenGL a graphics card?

OpenGL is a widely used software library for drawing 3D graphics and is used by KISSsoft and KISSsys to draw 3D visualizations. This OpenGL library is usually provided by your graphics card driver and makes use of your computer's graphics card.


1 Answers

You can get all the information via the OpenGL Api.

https://www.khronos.org/opengl/wiki/Get_Context_Info

const GLubyte* vendor = glGetString​(GL_VENDOR); // Returns the vendor
const GLubyte* renderer = glGetString​(GL_RENDERER); // Returns a hint to the model

In my case the renderer returns the following string: "GeForce GT 750M/PCIe/SSE2"

I don't know, what it would return for Intel or Amd cards. To my knowledge the format of the string and it's content is up to the implementation.

like image 126
OutOfBound Avatar answered Oct 09 '22 03:10

OutOfBound