ID3D11Device* md3dDevice;
ID3D11DeviceContext* md3dImmediateContext;
D3D_DRIVER_TYPE md3dDriverType = D3D_DRIVER_TYPE_HARDWARE;
HRESULT hr = D3D11CreateDevice(
0,
md3dDriverType,
0,
D3D11_CREATE_DEVICE_DEBUG,
0, 0,
D3D11_SDK_VERSION,
&md3dDevice,
&featureLevel,
&md3dImmediateContext);ID3D11Device* md3dDevice;
I am getting an e_fail from this function when I include the D3D11_CREATE_DEVICE_DEBUG flag (works fine without flag). I assumed this had something to do with my debug runtime so I reinstalled the dx sdk as per the instructions in this thread: What can cause D3D11CreateDevice() to fail with E_FAIL? It did not solve the problem though.
I am also still seeing zero debug levels in dxdiag:
--------------------
DirectX Debug Levels
--------------------
Direct3D: 0/4 (retail)
DirectDraw: 0/4 (retail)
DirectInput: 0/5 (retail)
DirectMusic: 0/5 (retail)
DirectPlay: 0/9 (retail)
DirectSound: 0/5 (retail)
DirectShow: 0/6 (retail)
Any help would be appreciated.