mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Make wgpu-info Default to Static-DXC as Well (#6782)
This commit is contained in:
parent
d63ca09c34
commit
be07f41da7
@ -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"] }
|
||||
|
||||
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user