获取显卡模型? [英] Get the graphics card model?

查看:447
本文介绍了获取显卡模型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何从代码,特别是从DirectX 9.0c(从C ++代码中)获得显卡模型/品牌。

I was wondering how I can get the graphics card model/brand from code particularly from DirectX 9.0c (from within C++ code).

推荐答案

在运行时,您可以查询设备型号和供应商:

At runtime, you can query the device model and vendor:


  • 在OpenGL中,使用命令glGetString GL_VENDOR)或GL_RENDERER或GL_VERSION,以获取您之后的信息。

  • In OpenGL, use the command glGetString(GL_VENDOR) or GL_RENDERER or GL_VERSION to get the information you're after.

在DirectX 9中,信息显示在Microsoft配置系统中,并从设备数据库中查询。这是本文档的第3部分,其中还有示例代码: http://msdn.microsoft.com/en-us/library/bb204848(VS.85).aspx
使用相同的系统,你可以得到这样的信息,如视频卡的RAM ,驱动程序号等。

In DirectX 9, it appears the info is in the Microsoft config system, and is queried from the device database. It's section 3 of this document, which also has example code: http://msdn.microsoft.com/en-us/library/bb204848(VS.85).aspx Using the same system you can get such information as the amount of ram the video card has, the driver number, etc.

这篇关于获取显卡模型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆