agdk-egui: build with upstream master branch

This commit is contained in:
Robert Bragg
2022-05-23 01:51:50 +01:00
parent 2f3dbf12a6
commit 084b807319
2 changed files with 19 additions and 4 deletions
+9 -3
View File
@@ -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"
+10 -1
View File
@@ -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();