Skip to content

Commit

Permalink
eframe: enable some default backends for wgpu
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 23, 2024
1 parent e9c9951 commit 9726e4c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
21 changes: 21 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion crates/eframe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,14 @@ pollster = { version = "0.3", optional = true } # needed for wgpu
glutin = { version = "0.31", optional = true }
glutin-winit = { version = "0.4", optional = true }
puffin = { workspace = true, optional = true }
wgpu = { workspace = true, optional = true }
wgpu = { workspace = true, optional = true, features = [
# Let's enable some backends so that users can use `eframe` out-of-the-box
# without having to explicitly opt-in to backends
"dx12",
"metal",
"webgl",
"webgpu",
] }

# mac:
[target.'cfg(any(target_os = "macos"))'.dependencies]
Expand Down

0 comments on commit 9726e4c

Please sign in to comment.