there is an answer about DirectX11, but DirectX9 is different.
The first parameter of IDirect3D9::CreateDevice and IDirect3D9Ex::CreateDevice is UINT Adapter
, it should be a number between 0 and one less than the result of IDirect3D::GetAdapterCount
but the GetAdapterCount returns 1
, even my laptop have two video cards(one is Intel HD Graphics 3000, another is AMD HD7400M)
I can get the second video card by IDXGIFactory::EnumAdapters in DirectX11, so how can i get to it in DirectX 9?