mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
[d3d12] fix possible crash on GPUs that only support SM5.1 (#8918)
This commit is contained in:
1 parent
d0c9044e42
commit
723cb5db0c
1 file changed
+1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user