Hope I posted a suitable forum on this!
I recently started programming with DirectX on June 11 (2010) SDK on VC ++ 2010, on Dell LapTop with an NVIDIA GeForce GT 630M GPU and Intel HD 4000 chip.
One of the things you do is try to list the available adapters and outputs, etc. Here is an example:
IDXGIFactory1 *factory; CreateDXGIFactory1(__uuidof(IDXGIFactory1), (LPVOID *)&factory); IDXGIAdapter *adapter; factory->EnumAdapters(0, &adapter); DXGI_ADAPTER_DESC desc; adapter->GetDesc(&desc);
When I run this, the desc structure contains information for my Intel HD chip, NOT information for my GPU!
Now, when I open the NVidia control panel and select the GPU as the preferred processor and restart the sample, I get the information for my GPU in desc - which is right! And also, when I then try to list the outputs for this adapter, I find that there is at least one.
My question is: is there a way to accomplish this programmatically, as in the DirectX 11 SDK, so that I do not need to set this parameter in my NVidia control panel?
I went through the SDK code (for EmptyProject11), and somehow they “captured” the GPU instead of the Intel chip. I commented out all the code in the WinMain function and inserted the above code, and it still grabbed the GPU! Does this have anything to do with project setup, environment variables, command line arguments, or ...? I mean how do they do it!?!?!?
I would be grateful for your understanding of this issue.
thanks