From b6917bad0330e673425b37a55503998041a019f3 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Sat, 17 Feb 2024 16:01:05 -0800 Subject: [PATCH] test-renderers: Enable wgpu backend features. This used to be implicit but now `all-is-cubes-gpu` has `default-features = false`, so we lost all non-Linux backends. --- all-is-cubes-desktop/Cargo.toml | 2 +- test-renderers/Cargo.toml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/all-is-cubes-desktop/Cargo.toml b/all-is-cubes-desktop/Cargo.toml index 73eb3ba46..629117e69 100644 --- a/all-is-cubes-desktop/Cargo.toml +++ b/all-is-cubes-desktop/Cargo.toml @@ -58,7 +58,7 @@ tokio = { workspace = true, features = ["rt-multi-thread", "sync"] } ratatui = { version = "0.25.0", default-features = false, features = ["crossterm"] } unicode-width = { version = "0.1.9", default-features = false } # We have no true direct dependency on wgpu, but do need to select backends. -# (As of wgpu 0.19, Vulkan is implicitly enabled on Linux +# (As of wgpu 0.19, Vulkan is implicitly enabled on Linux.) wgpu = { workspace = true, features = ["dx12", "metal"] } # Note on feature selection: winit requires either "x11" or "wayland" to build at all on Linux, which is harmless elsewhere. I picked x11 because it should be the most compatible. winit = { version = "0.29.2", default-features = false, features = ["x11", "rwh_06"] } diff --git a/test-renderers/Cargo.toml b/test-renderers/Cargo.toml index 19558631d..10fe24eb5 100644 --- a/test-renderers/Cargo.toml +++ b/test-renderers/Cargo.toml @@ -80,7 +80,9 @@ tempfile = { workspace = true } tinytemplate = "1.2.1" # Using tokio for async test-running. tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread", "parking_lot", "sync", "time"] } -wgpu = { workspace = true } +# In addition to depending on wgpu directly, we also need to select backends to be enabled in our binary. +# (As of wgpu 0.19, Vulkan is implicitly enabled on Linux.) +wgpu = { workspace = true, features = ["dx12", "metal"] } [lints] workspace = true