summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D12/main.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2016-03-06 18:45:57 +1000
committerStenzek <stenzek@gmail.com>2016-05-08 12:08:25 +1000
commit3372bfa6ab72c38763ed5b37dcb0fe6a9068a7eb (patch)
treec77882bd037c6a04c7ea5f5340c2e35069ac9f7a /Source/Core/VideoBackends/D3D12/main.cpp
parent063761fbd287c1dd05e022c5369a07747156eb70 (diff)
D3D12: Remove feature level checks
We don't create a device below feature level 11_0 anyway, so no point checking, we can just assume support.
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/main.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D12/main.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/Core/VideoBackends/D3D12/main.cpp b/Source/Core/VideoBackends/D3D12/main.cpp
index 636723458a..1f75854a33 100644
--- a/Source/Core/VideoBackends/D3D12/main.cpp
+++ b/Source/Core/VideoBackends/D3D12/main.cpp
@@ -110,19 +110,17 @@ void InitBackendInfo()
g_Config.backend_info.AAModes.push_back(modes[i].Count);
}
- bool shader_model_5_supported = (DX12::D3D::GetFeatureLevel(ad) >= D3D_FEATURE_LEVEL_11_0);
-
// Requires the earlydepthstencil attribute (only available in shader model 5)
- g_Config.backend_info.bSupportsEarlyZ = shader_model_5_supported;
+ g_Config.backend_info.bSupportsEarlyZ = true;
// Requires full UAV functionality (only available in shader model 5)
- g_Config.backend_info.bSupportsBBox = shader_model_5_supported;
+ g_Config.backend_info.bSupportsBBox = true;
// Requires the instance attribute (only available in shader model 5)
- g_Config.backend_info.bSupportsGSInstancing = shader_model_5_supported;
+ g_Config.backend_info.bSupportsGSInstancing = true;
// Sample shading requires shader model 5
- g_Config.backend_info.bSupportsSSAA = shader_model_5_supported;
+ g_Config.backend_info.bSupportsSSAA = true;
}
g_Config.backend_info.Adapters.push_back(UTF16ToUTF8(desc.Description));
ad->Release();