diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-10-17 16:53:57 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-10-17 16:53:57 +0000 |
| commit | 5a4e694df2c519ee6a81a2ce1428e65624a17dfd (patch) | |
| tree | 0e42d5d4b4b13cec35ef891b731363b0e41c2e14 /Graphics/GraphicsEngineD3D12 | |
| parent | Updated d3d backend initialization + d3d shader model selection (diff) | |
| download | DiligentCore-5a4e694df2c519ee6a81a2ce1428e65624a17dfd.tar.gz DiligentCore-5a4e694df2c519ee6a81a2ce1428e65624a17dfd.zip | |
Minor coment
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp b/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp index fcb73975..9b8eb97a 100644 --- a/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp +++ b/Graphics/GraphicsEngineD3D12/src/EngineFactoryD3D12.cpp @@ -153,7 +153,7 @@ void EngineFactoryD3D12Impl::CreateDeviceAndContextsD3D12(const EngineD3D12Creat HRESULT hr = CreateDXGIFactory1(__uuidof(factory), reinterpret_cast<void**>(static_cast<IDXGIFactory4**>(&factory)) ); CHECK_D3D_RESULT_THROW(hr, "Failed to create DXGI factory"); - // Direct3D12 does not support feature levels below 11.0 + // Direct3D12 does not allow feature levels below 11.0 (D3D12CreateDevice fails to create a device). const auto MinimumFeatureLevel = EngineCI.MinimumFeatureLevel >= DIRECT3D_FEATURE_LEVEL_11_0 ? EngineCI.MinimumFeatureLevel : DIRECT3D_FEATURE_LEVEL_11_0; CComPtr<IDXGIAdapter1> hardwareAdapter; |
