Skip to content

Commit

Permalink
missing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
2A5F committed Nov 25, 2024
1 parent c390a12 commit 9c227c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Graphics/GraphicsEngineD3D11/src/ShaderD3D11Impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ static const ShaderVersion GetD3D11ShaderModel(D3D_FEATURE_LEVEL d3dDeviceFeatur
// above 11.0 (for example, 11.1 or 12.0).
// https://docs.microsoft.com/en-us/windows/win32/direct3d11/overviews-direct3d-11-devices-downlevel-intro#overview-for-each-feature-level
#if defined(_WIN32_WINNT_WIN10) && (_WIN32_WINNT >= _WIN32_WINNT_WIN10)
case D3D_FEATURE_LEVEL_12_2:
case D3D_FEATURE_LEVEL_12_1:
case D3D_FEATURE_LEVEL_12_0:
#endif
Expand Down
2 changes: 2 additions & 0 deletions Graphics/GraphicsEngineD3D12/src/RenderDeviceD3D12Impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ D3D_FEATURE_LEVEL GetD3DFeatureLevelFromDevice(ID3D12Device* pd3d12Device)
{
D3D_FEATURE_LEVEL FeatureLevels[] =
{
D3D_FEATURE_LEVEL_12_2,
D3D_FEATURE_LEVEL_12_1,
D3D_FEATURE_LEVEL_12_0,
D3D_FEATURE_LEVEL_11_1,
Expand Down Expand Up @@ -177,6 +178,7 @@ RenderDeviceD3D12Impl::RenderDeviceD3D12Impl(IReferenceCounters* pRefCo
auto FeatureLevel = GetD3DFeatureLevelFromDevice(m_pd3d12Device);
switch (FeatureLevel)
{
case D3D_FEATURE_LEVEL_12_2: m_DeviceInfo.APIVersion = {12, 2}; break;
case D3D_FEATURE_LEVEL_12_1: m_DeviceInfo.APIVersion = {12, 1}; break;
case D3D_FEATURE_LEVEL_12_0: m_DeviceInfo.APIVersion = {12, 0}; break;
case D3D_FEATURE_LEVEL_11_1: m_DeviceInfo.APIVersion = {11, 1}; break;
Expand Down

0 comments on commit 9c227c1

Please sign in to comment.