Skip to content

Commit 48e2298

Browse files
authored
Fix wgpu-info's use of DXC (#7184)
1 parent 9c0fa29 commit 48e2298

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

wgpu-info/src/report.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ use std::io;
33
use hashbrown::HashMap;
44
use serde::{Deserialize, Serialize};
55
use wgpu::{
6-
AdapterInfo, DownlevelCapabilities, Features, Limits, TextureFormat, TextureFormatFeatures,
6+
AdapterInfo, DownlevelCapabilities, Dx12Compiler, Features, Limits, TextureFormat,
7+
TextureFormatFeatures,
78
};
89

910
use crate::texture;
@@ -19,9 +20,10 @@ pub struct GpuReport {
1920
impl GpuReport {
2021
pub fn generate() -> Self {
2122
let instance = wgpu::Instance::new(&{
22-
let mut desc = wgpu::InstanceDescriptor::from_env_or_default();
23-
desc.flags = wgpu::InstanceFlags::debugging().with_env();
24-
desc
23+
let mut desc = wgpu::InstanceDescriptor::default();
24+
desc.backend_options.dx12.shader_compiler = Dx12Compiler::StaticDxc;
25+
desc.flags = wgpu::InstanceFlags::debugging();
26+
desc.with_env()
2527
});
2628
let adapters = instance.enumerate_adapters(wgpu::Backends::all());
2729

0 commit comments

Comments
 (0)