I've bought a new laptop with an nVidia Geforce GT540M card, which supports DX11, for some reason i can't seem to be able to create a device with feature level 11.0, i looked at the device caps and feature level 11 is listed there, i have the nVidia latest driver, though, there's a problem that the dxdiag (dx diagnostic tool) dialog shows info about intel HD graphics - so i'm somewhat confused, in the system tab it shows "DirectX Version: DirectX 11", but the Display tab shows the intel driver information.
is the problem from the hardware side or my code? here's how i create my device:
D3D_FEATURE_LEVEL level;
D3D_FEATURE_LEVEL desiredLevels[1] = { D3D_FEATURE_LEVEL_11_0 };
HX_PRINTERR_HR ( D3D11CreateDevice ( __Impl__->DXGIPrimaryAdapter, D3D_DRIVER_TYPE_UNKNOWN, NULL, __Impl__->registerDesc->deviceLayers,
desiredLevels, 1, D3D11_SDK_VERSION, &__Impl__->D3DDevice, &level, &__Impl__->D3DDeviceContext ), HX_UNABLETOCREATEDEVICE );
this fails with no errors from the debug layer, also, if i leave the feature levels to NULL, it works but the returned "level" is 10.1, what is the problem?
Thanks for your time.




















