Skip to content

Commit be07f41

Browse files
authored
Make wgpu-info Default to Static-DXC as Well (#6782)
1 parent d63ca09 commit be07f41

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

wgpu-info/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ env_logger.workspace = true
1616
pico-args.workspace = true
1717
serde.workspace = true
1818
serde_json.workspace = true
19-
wgpu = { workspace = true, features = ["serde"] }
19+
wgpu = { workspace = true, features = ["serde", "static-dxc"] }

wgpu-info/src/report.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ impl GpuReport {
2020
let instance = wgpu::Instance::new(wgpu::InstanceDescriptor {
2121
backends: wgpu::util::backend_bits_from_env().unwrap_or_default(),
2222
flags: wgpu::InstanceFlags::debugging().with_env(),
23-
dx12_shader_compiler: wgpu::util::dx12_shader_compiler_from_env().unwrap_or_default(),
23+
dx12_shader_compiler: wgpu::util::dx12_shader_compiler_from_env()
24+
.unwrap_or(wgpu::Dx12Compiler::StaticDxc),
2425
gles_minor_version: wgpu::util::gles_minor_version_from_env().unwrap_or_default(),
2526
});
2627
let adapters = instance.enumerate_adapters(wgpu::Backends::all());

0 commit comments

Comments
 (0)