Skip to content

Commit

Permalink
test-renderers: Enable wgpu backend features.
Browse files Browse the repository at this point in the history
This used to be implicit but now `all-is-cubes-gpu` has
`default-features = false`, so we lost all non-Linux backends.
  • Loading branch information
kpreid committed Feb 18, 2024
1 parent e26c2eb commit b6917ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion all-is-cubes-desktop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
4 changes: 3 additions & 1 deletion test-renderers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b6917ba

Please sign in to comment.