pub struct DebugRenderer { /* private fields */ }Expand description
Debug renderer that wraps a normal renderer and provides additional debugging info
Implementations§
Source§impl DebugRenderer
impl DebugRenderer
Sourcepub fn enable_visual_overlay(&mut self, enable: bool)
pub fn enable_visual_overlay(&mut self, enable: bool)
Enable or disable visual debugging overlay on rendered frames
Sourcepub fn enable_text_output(&mut self, enable: bool)
pub fn enable_text_output(&mut self, enable: bool)
Enable or disable text debug output to console
Sourcepub fn set_output_dir(&mut self, dir: &str)
pub fn set_output_dir(&mut self, dir: &str)
Set the directory where debug output files will be saved
Sourcepub fn render_frame_debug(
&mut self,
script: &Script<'_>,
time_ms: u32,
) -> Result<(Frame, FrameDebugInfo), RenderError>
pub fn render_frame_debug( &mut self, script: &Script<'_>, time_ms: u32, ) -> Result<(Frame, FrameDebugInfo), RenderError>
Render a frame with full debug instrumentation
Returns both the rendered frame and detailed debug information
Sourcepub fn get_frame_history(&self) -> &[FrameDebugInfo]
pub fn get_frame_history(&self) -> &[FrameDebugInfo]
Get the history of rendered frames with debug information
Sourcepub fn clear_history(&mut self)
pub fn clear_history(&mut self)
Clear the frame history
Sourcepub fn compare_frames(
&self,
idx1: usize,
idx2: usize,
) -> Option<FrameComparison>
pub fn compare_frames( &self, idx1: usize, idx2: usize, ) -> Option<FrameComparison>
Compare two frames from the history by their indices
Returns None if either index is out of bounds
Auto Trait Implementations§
impl !RefUnwindSafe for DebugRenderer
impl !UnwindSafe for DebugRenderer
impl Freeze for DebugRenderer
impl Send for DebugRenderer
impl Sync for DebugRenderer
impl Unpin for DebugRenderer
impl UnsafeUnpin for DebugRenderer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more