mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
Use Static-DXC for tests (#6730)
This commit is contained in:
parent
4da7c263ed
commit
bcc962687d
@ -45,7 +45,7 @@ serde_json.workspace = true
|
||||
serde.workspace = true
|
||||
strum = { workspace = true, features = ["derive"] }
|
||||
trybuild.workspace = true
|
||||
wgpu = { workspace = true, features = ["wgsl"] }
|
||||
wgpu = { workspace = true, features = ["wgsl", "static-dxc"] }
|
||||
wgpu-macros.workspace = true
|
||||
wgt = { workspace = true, features = ["serde"] }
|
||||
|
||||
|
||||
@ -34,7 +34,7 @@ pub fn initialize_instance(backends: wgpu::Backends, force_fxc: bool) -> Instanc
|
||||
let dx12_shader_compiler = if force_fxc {
|
||||
wgpu::Dx12Compiler::Fxc
|
||||
} else {
|
||||
wgpu::util::dx12_shader_compiler_from_env().unwrap_or_default()
|
||||
wgpu::util::dx12_shader_compiler_from_env().unwrap_or(wgpu::Dx12Compiler::StaticDxc)
|
||||
};
|
||||
let gles_minor_version = wgpu::util::gles_minor_version_from_env().unwrap_or_default();
|
||||
Instance::new(wgpu::InstanceDescriptor {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user