我想知道OpenGL或Win32中的图形卡型号名称我在特定类型的显卡上只有内存泄漏错误(只有英特尔高清不是所有的英特尔)。
这是错误:https://software.intel.com/en-us/forums/developing-games-and-graphics-on-intel/topic/280679
OpenGL中的供应商名称是不够的。有人知道一种方法来获取图形卡的名称与使用Direct3D不同吗?或者您认为我可以一起使用D3D和OpenGL吗? Get the graphics card model?
答案 0 :(得分:6)
您可以通过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
在我的情况下,渲染器返回以下字符串: " GeForce GT 750M / PCIe / SSE2"
我不知道,它会为英特尔或Amd卡带来什么回报。据我所知,字符串的格式及其内容取决于实现。