Skip to content

Commit

Permalink
Make wgpu-info Default to Static-DXC as Well (#6782)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald authored Dec 18, 2024
1 parent d63ca09 commit be07f41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wgpu-info/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
3 changes: 2 additions & 1 deletion wgpu-info/src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit be07f41

Please sign in to comment.