| Ralf's profileFun with GPUsBlogLists | Help |
|
March 30 How to check if a graphics adapter supports Direct3D 10?In comparison to Direct3D 9 there is no general object for hardware enumeration in Direct3D 10. But Vista supports another API for this purpose. DirectX Graphics Infrastructure (DXGI) is the way to go. This short example shows how to use DXGI to look for a Direct3D 10 compatible graphics adapter. IDXGIFactory* pDXGIFactory; if (hr != S_OK) int AdapterIndex = 0; IDXGIAdapter* pAdapter; // Loop as long as DXGI returns valid adapters. while (pDXGIFactory->EnumAdapters (AdapterIndex, &pAdapter) == S_OK) Be aware that the key method CheckInterfaceSupport will not work with interface GUIDs of older Direct3D version. |
|
|