mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Make wgpu-info Default to Static-DXC as Well (#6782)
This commit is contained in:
committed by
GitHub
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());
|
||||
|
||||
Reference in New Issue
Block a user