[d3d12] fix possible crash on GPUs that only support SM5.1 (#8918)

This commit is contained in:
Teodor Tanasoaia authored and GitHub committed 2026-01-26 10:50:03 +01:00
1 parent d0c9044e42
commit 723cb5db0c
1 file changed
+1
+1
View File
@@ -345,6 +345,7 @@ impl super::Adapter {
.is_ok()
{
break match sm.HighestShaderModel {
Direct3D12::D3D_SHADER_MODEL_5_1 => ShaderModel::_5_1,
Direct3D12::D3D_SHADER_MODEL_6_0 => ShaderModel::_6_0,
Direct3D12::D3D_SHADER_MODEL_6_1 => ShaderModel::_6_1,
Direct3D12::D3D_SHADER_MODEL_6_2 => ShaderModel::_6_2,