Get Graphic device information in DirectX

This time I work on windows phone 8 application, so i need to learn DirectX. Recently I had to get device information for device profile.

IDXGIDevice *m_DXGIDevice;
 IDXGIAdapter *m_DXGIAdapter;
 device->QueryInterface<IDXGIDevice>(&m_DXGIDevice);
 m_DXGIDevice->GetAdapter(&m_DXGIAdapter);
 m_DXGIAdapter->GetDesc(&m_adapterInfo);
 wcscpy(m_deviceModel,m_adapterInfo.Description);

Unfortunately this code work on windows desktop but not on windows phone.

 

Update 1 :

As you all know that windows phone 8 DirectX Feature level is 9.3, code above only supported on directX 10 and above. If you run this code in DirectX Feature level 9.3 (dekstop or phone) you will get “Software Driver” in m_adapterInfo.Description value.

Update 2 :

Windows Phone 8.1 brings DirectX 11.2, so you can use this snippet in this windows phone version.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s