pub struct StreamingDebugVisualizer {
pub overlay: DebugOverlay,
pub draw_commands: Vec<DebugDrawCommand>,
pub heatmap_data: HashMap<CellCoord, f32>,
pub visible_sector_ids: HashSet<u64>,
pub show_load_distances: bool,
pub show_memory_usage: bool,
pub show_cell_grid: bool,
pub max_commands: usize,
}Fields§
§overlay: DebugOverlay§draw_commands: Vec<DebugDrawCommand>§heatmap_data: HashMap<CellCoord, f32>§visible_sector_ids: HashSet<u64>§show_load_distances: bool§show_memory_usage: bool§show_cell_grid: bool§max_commands: usizeImplementations§
Source§impl StreamingDebugVisualizer
impl StreamingDebugVisualizer
pub fn new() -> Self
pub fn clear(&mut self)
pub fn draw_level_bounds(&mut self, level: &StreamingLevel)
pub fn draw_load_distance_sphere(&mut self, level: &StreamingLevel)
pub fn draw_cell_grid(&mut self, grid: &WorldPartitionGrid, camera_pos: Vec3)
pub fn draw_memory_label(&mut self, level: &StreamingLevel)
pub fn update_heatmap(&mut self, grid: &WorldPartitionGrid)
pub fn draw_sector_portals(&mut self, sector_graph: &SectorGraph)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingDebugVisualizer
impl RefUnwindSafe for StreamingDebugVisualizer
impl Send for StreamingDebugVisualizer
impl Sync for StreamingDebugVisualizer
impl Unpin for StreamingDebugVisualizer
impl UnsafeUnpin for StreamingDebugVisualizer
impl UnwindSafe for StreamingDebugVisualizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.