With DXGI, I get a list of all the graphics cards.
IDXGIFactory* factory;
vector<IDXGIAdapter*> all_adapters;
HRESULT result(S_FALSE);
result = CreateDXGIFactory(__uuidof(IDXGIFactory), (void**)&factory);
if (FAILED(result))
return false;
for (int i(0);; i++)
{
IDXGIAdapter* adpt(nullptr);
result = factory->EnumAdapters(i, &adpt);
if (FAILED(result))
break;
DXGI_ADAPTER_DESC adesc;
ZeroMemory(&adesc, sizeof(adesc));
adpt->GetDesc(&adesc);
if ((adesc.VendorId == 0x1414) && (adesc.DeviceId == 0x8c)) // no add WARP
{
adpt->Release();
continue;
}
all_adapters.push_back(adpt);
}
How to define an integrated graphics card?
I would like to identify a discrete and integrated graphics card.