Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualYourself

Posted 21 March 2013 - 02:38 AM

Info about the GPU hardware can be retrieved using DXGI.

something like this:

IDXGIFactory *Factory; 
CreateDXGIFactory(__uuidof(IDXGIFactory), (void**)&Factory);
UINT AdapterIndex = 0; 
IDXGIAdapter* adapter = NULL; 
while (Factory->EnumAdapters(AdapterIndex, &adapter) != DXGI_ERROR_NOT_FOUND) 
{ 
	if (adapter) 
	{ 
		DXGI_ADAPTER_DESC desc; 
		adapter->GetDesc(&desc); 
	}
	++AdapterIndex;
}

#1Yourself

Posted 21 March 2013 - 02:01 AM

Info about the GPU hardware can be retrieved using DXGI.

something like this:

IDXGIFactory *Factory; 
CreateDXGIFactory(__uuidof(IDXGIFactory), (void**)&Factory);
UINT AdapterIndex = 0; 
IDXGIAdapter* adapter = NULL; 
while (Factory->EnumAdapters(AdapterIndex, &adapter) != DXGI_ERROR_NOT_FOUND) 
{ 
	if (adapter) 
	{ 
		DXGI_ADAPTER_DESC desc; 
		if (adapter->GetDesc(&desc)) 
		{ 
			// use it
		}
	}
	++AdapterIndex;
}

PARTNERS