pub trait WindowSizeDependent {
// Required method
fn on_window_resize(&mut self, device: &Device, new_size: PhysicalSize<u32>);
}Expand description
Something that needs remaking/resizing whenever the game window is resized
pub trait WindowSizeDependent {
// Required method
fn on_window_resize(&mut self, device: &Device, new_size: PhysicalSize<u32>);
}Something that needs remaking/resizing whenever the game window is resized