mirror of
https://github.com/rust-mobile/android-activity.git
synced 2026-07-10 08:44:11 +00:00
agdk-egui: build with upstream master branch
This commit is contained in:
@@ -19,12 +19,18 @@ egui_demo_lib = "0.18"
|
||||
[patch.crates-io]
|
||||
winit = { git = "https://github.com/rib/winit", branch = "agdk-game-activity" }
|
||||
#winit = { path="../../../winit" }
|
||||
egui = { git = "https://github.com/rib/egui", branch = "android-deferred-winit-wgpu" }
|
||||
egui-winit = { git = "https://github.com/rib/egui", branch = "android-deferred-winit-wgpu" }
|
||||
egui-wgpu = { git = "https://github.com/rib/egui", branch = "android-deferred-winit-wgpu" }
|
||||
|
||||
egui = { git = "https://github.com/emilk/egui" }
|
||||
egui-wgpu = { git = "https://github.com/emilk/egui" }
|
||||
egui-winit = { git = "https://github.com/emilk/egui" }
|
||||
egui_extras = { git = "https://github.com/emilk/egui" }
|
||||
egui_demo_lib = { git = "https://github.com/emilk/egui" }
|
||||
|
||||
#egui = { path = "../../../egui/egui" }
|
||||
#egui-wgpu = { path = "../../../egui/egui-wgpu" }
|
||||
#egui-winit = { path = "../../../egui/egui-winit" }
|
||||
#egui_extras = { path = "../../../egui/egui_extras" }
|
||||
#egui_demo_lib = { path = "../../../egui/egui_demo_lib" }
|
||||
|
||||
[target.'cfg(not(target_os = "android"))'.dependencies]
|
||||
env_logger = "0.9"
|
||||
|
||||
@@ -64,7 +64,16 @@ fn _main() {
|
||||
});
|
||||
|
||||
let mut state = State::new(&event_loop);
|
||||
let mut painter = Painter::new(wgpu::PowerPreference::LowPower, wgpu::PresentMode::Fifo, 1);
|
||||
let mut painter = Painter::new(
|
||||
wgpu::Backends::all(),
|
||||
wgpu::PowerPreference::LowPower,
|
||||
wgpu::DeviceDescriptor {
|
||||
label: None,
|
||||
features: wgpu::Features::default(),
|
||||
limits: wgpu::Limits::default()
|
||||
},
|
||||
wgpu::PresentMode::Fifo,
|
||||
1);
|
||||
let mut window: Option<winit::window::Window> = None;
|
||||
let mut egui_demo_windows = egui_demo_lib::DemoWindows::default();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user