mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
egui-wgpu: turn off the default features of wgpu (#3875)
This makes all `wgpu` features opt-in for `egui-wgpu` users. For `eframe`, I opted to enable some `wgpu` features so users can still use `eframe` without having to also opt-in to extra ewgpu features (eframe is batteries-included).
This commit is contained in:
@@ -168,7 +168,12 @@ 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
|
||||
"metal",
|
||||
"webgpu",
|
||||
] }
|
||||
|
||||
# mac:
|
||||
[target.'cfg(any(target_os = "macos"))'.dependencies]
|
||||
|
||||
Reference in New Issue
Block a user