Skip to content

Commit 723cb5d

Browse files
authored
[d3d12] fix possible crash on GPUs that only support SM5.1 (gfx-rs#8918)
1 parent d0c9044 commit 723cb5d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wgpu-hal/src/dx12/adapter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ impl super::Adapter {
345345
.is_ok()
346346
{
347347
break match sm.HighestShaderModel {
348+
Direct3D12::D3D_SHADER_MODEL_5_1 => ShaderModel::_5_1,
348349
Direct3D12::D3D_SHADER_MODEL_6_0 => ShaderModel::_6_0,
349350
Direct3D12::D3D_SHADER_MODEL_6_1 => ShaderModel::_6_1,
350351
Direct3D12::D3D_SHADER_MODEL_6_2 => ShaderModel::_6_2,

0 commit comments

Comments
 (0)