mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
hal/dx12: Fix UMA check
This commit is contained in:
committed by
Dzmitry Malyshau
parent
b19288a78b
commit
54f20bedef
@@ -98,7 +98,7 @@ impl super::Adapter {
|
||||
device_type: if (desc.Flags & dxgi::DXGI_ADAPTER_FLAG_SOFTWARE) != 0 {
|
||||
workarounds.avoid_cpu_descriptor_overwrites = true;
|
||||
wgt::DeviceType::Cpu
|
||||
} else if features_architecture.CacheCoherentUMA != 0 {
|
||||
} else if features_architecture.UMA != 0 {
|
||||
wgt::DeviceType::IntegratedGpu
|
||||
} else {
|
||||
wgt::DeviceType::DiscreteGpu
|
||||
|
||||
Reference in New Issue
Block a user