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

This commit is contained in:
Teodor Tanasoaia authored and teoxoy committed 2026-01-26 10:51:28 +01:00
1 parent a3164af1e1
commit 0a4a0a70cd
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,