From be07f41da7d6ac5bc2af6af3013d7597be9d6d18 Mon Sep 17 00:00:00 2001 From: Connor Fitzgerald Date: Wed, 18 Dec 2024 14:51:02 -0500 Subject: [PATCH] Make `wgpu-info` Default to Static-DXC as Well (#6782) --- wgpu-info/Cargo.toml | 2 +- wgpu-info/src/report.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wgpu-info/Cargo.toml b/wgpu-info/Cargo.toml index 50bc89bf5c..3d2103b202 100644 --- a/wgpu-info/Cargo.toml +++ b/wgpu-info/Cargo.toml @@ -16,4 +16,4 @@ env_logger.workspace = true pico-args.workspace = true serde.workspace = true serde_json.workspace = true -wgpu = { workspace = true, features = ["serde"] } +wgpu = { workspace = true, features = ["serde", "static-dxc"] } diff --git a/wgpu-info/src/report.rs b/wgpu-info/src/report.rs index 5e27fa7c0e..47b063f725 100644 --- a/wgpu-info/src/report.rs +++ b/wgpu-info/src/report.rs @@ -20,7 +20,8 @@ impl GpuReport { let instance = wgpu::Instance::new(wgpu::InstanceDescriptor { backends: wgpu::util::backend_bits_from_env().unwrap_or_default(), flags: wgpu::InstanceFlags::debugging().with_env(), - dx12_shader_compiler: wgpu::util::dx12_shader_compiler_from_env().unwrap_or_default(), + dx12_shader_compiler: wgpu::util::dx12_shader_compiler_from_env() + .unwrap_or(wgpu::Dx12Compiler::StaticDxc), gles_minor_version: wgpu::util::gles_minor_version_from_env().unwrap_or_default(), }); let adapters = instance.enumerate_adapters(wgpu::Backends::all());