Skip to content

Commit b225bbd

Browse files
committed
Switch to static DXC
1 parent 7b6cc69 commit b225bbd

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/difftests/lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use-compiled-tools = [
1919
spirv-builder.workspace = true
2020
serde = { version = "1.0", features = ["derive"] }
2121
serde_json = "1.0"
22-
wgpu = { version = "25.0.2", features = ["spirv", "vulkan-portability"] }
22+
wgpu = { version = "25.0.2", features = ["spirv", "vulkan-portability", "static-dxc"] }
2323
tempfile = "3.5"
2424
futures = "0.3.31"
2525
bytemuck = "1.21.0"

tests/difftests/lib/src/scaffold/compute/wgpu.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,14 @@ where
163163
#[cfg(not(target_os = "linux"))]
164164
backends: wgpu::Backends::PRIMARY,
165165
flags: Default::default(),
166-
backend_options: Default::default(),
166+
backend_options: wgpu::BackendOptions {
167+
#[cfg(target_os = "windows")]
168+
dx12: wgpu::Dx12BackendOptions {
169+
shader_compiler: wgpu::Dx12Compiler::StaticDxc,
170+
..Default::default()
171+
},
172+
..Default::default()
173+
},
167174
});
168175
let adapter = instance
169176
.request_adapter(&wgpu::RequestAdapterOptions {

tests/difftests/tests/Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)