Update order of code

Important stuff first, secondary stuff used by the important stuff
second.
This commit is contained in:
Hanno Braun 2022-10-12 13:38:36 +02:00
parent 0d587924c0
commit 9d0b1ff551

View File

@ -14,15 +14,6 @@
//!
//! <https://github.com/gfx-rs/wgpu/issues/1492>
#[derive(Default)]
pub struct Options {
pub show_trace: bool,
pub show_layout_debug_on_hover: bool,
pub show_debug_text_example: bool,
pub show_settings_ui: bool,
pub show_inspection_ui: bool,
}
pub struct Gui {
pub context: egui::Context,
pub render_pass: egui_wgpu::renderer::RenderPass,
@ -81,3 +72,12 @@ impl std::fmt::Debug for Gui {
f.write_str("EguiState {}")
}
}
#[derive(Default)]
pub struct Options {
pub show_trace: bool,
pub show_layout_debug_on_hover: bool,
pub show_debug_text_example: bool,
pub show_settings_ui: bool,
pub show_inspection_ui: bool,
}