Rerwite everything to share an egui context

This commit is contained in:
2026-04-02 23:51:01 -04:00
parent 615b0ab9a1
commit f7b37caccb
16 changed files with 686 additions and 553 deletions
+1 -3
View File
@@ -14,7 +14,7 @@ pub struct GameScreen {
}
impl GameScreen {
fn init_pipeline(render_state: &egui_wgpu::RenderState) {
pub fn init_pipeline(render_state: &egui_wgpu::RenderState) {
let device = &render_state.device;
let bind_group_layout = device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
@@ -117,8 +117,6 @@ impl GameScreen {
}
pub fn init(render_state: &egui_wgpu::RenderState) -> (Self, TextureSink) {
Self::init_pipeline(render_state);
let device = &render_state.device;
let queue = &render_state.queue;