From f8beffe2896ae678d6d3da1771542fee7c6d0958 Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Tue, 14 Dec 2021 10:05:28 -0500 Subject: [PATCH] hal/dx12: expose WARP as a fallback adapter (#2290) --- wgpu-hal/src/dx12/adapter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-hal/src/dx12/adapter.rs b/wgpu-hal/src/dx12/adapter.rs index 9f20ea1369..4d7d1f3f18 100644 --- a/wgpu-hal/src/dx12/adapter.rs +++ b/wgpu-hal/src/dx12/adapter.rs @@ -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 {