Make wgpu-info Default to Static-DXC as Well (#6782)

This commit is contained in:
Connor Fitzgerald 2024-12-18 14:51:02 -05:00 committed by GitHub
parent d63ca09c34
commit be07f41da7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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"] }

View File

@ -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());