INNER CODE UNIT · Rust

update_swapchain

wkwan/flo · src/egui_integration.rs:85

    pub fn update_swapchain(&mut self, _width: u32, _height: u32) {
        // egui-ash-renderer handles this internally
    }

    pub fn cleanup(&mut self) {
        // Renderer cleanup is handled in Drop trait
    }
}

// Bevy resource wrapper for egui context
// This holds the raw input and a reference to the context in the renderer
#[derive(Resource)]
pub struct EguiContext {
    pub raw_input: egui::RawInput,
    pub has_context: bool, // Track if renderer has been initialized with egui
    pub scale_factor: f32, // Store the current display scale factor
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…