要使用具体硬件的显示适配器创建D3D11必须把driverTypes设为D3D_DRIVER_TYPE_UNKNOWN
如下
// 创建D3D11设备
HRESULT hr = D3D11CreateDevice(
d3dAdapter->GetDXGIAdapter().Get(), driverTypes, 0, creationFlags,
featureLevels, totalFeatureLevels,
D3D11_SDK_VERSION,
&d3dDevice.GetReference(), &feature, &d3dContext.GetReference());
driverTypes必须为D3D_DRIVER_TYPE_UNKNOWN,否则会提示INVALID_ARG