hal/dx12: expose WARP as a fallback adapter (#2290)

This commit is contained in:
Dzmitry Malyshau
2021-12-14 10:05:28 -05:00
committed by GitHub
parent 79e42e08c3
commit f8beffe289

View File

@@ -97,7 +97,7 @@ impl super::Adapter {
device: desc.DeviceId as usize,
device_type: if (desc.Flags & dxgi::DXGI_ADAPTER_FLAG_SOFTWARE) != 0 {
workarounds.avoid_cpu_descriptor_overwrites = true;
wgt::DeviceType::VirtualGpu
wgt::DeviceType::Cpu
} else if features_architecture.CacheCoherentUMA != 0 {
wgt::DeviceType::IntegratedGpu
} else {