Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

IDXGIAdapter with the best rendering performance

$
0
0

How do you obtain the IDXGIAdapter with the best rendering performance in case of multiple adapters?

IDXGIFactory3 *factory = NULL;
CreateDXGIFactory(__uuidof(IDXGIFactory3), (void**)&factory);
IDXGIAdapter1 *a1;
for (UINT i = 0; factory->EnumAdapters1(i, &a1) != DXGI_ERROR_NOT_FOUND; ++i)
{
    IDXGIAdapter2 *a2;
    a1->QueryInterface(__uuidof(IDXGIAdapter2), (void **)&a2);
    DXGI_ADAPTER_DESC2 desc;
    a2->GetDesc2(&desc);
    wchar_t *d = desc.Description;
}

L"Intel® HD Graphics 5500"

L"NVIDIA GeForce GTX 960M"  -> best performance for rendering

L"Microsoft Basic Render Driver"


Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>