pub struct FrameStats { /* private fields */ }Expand description
Per-frame performance and rendering telemetry snapshot.
Implementations§
Source§impl FrameStats
Present-outcome projection helpers for FrameStats.
impl FrameStats
Present-outcome projection helpers for FrameStats.
Sourcepub fn present_outcome(&self) -> PresentOutcome
pub fn present_outcome(&self) -> PresentOutcome
Sourcepub fn record_present_outcome(&mut self, outcome: PresentOutcome)
pub fn record_present_outcome(&mut self, outcome: PresentOutcome)
Updates both submit_outcome and wait_in_flight consistently from outcome.
§Arguments
&Self- Mutable frame statistics.PresentOutcome- Observed presentation outcome.
Source§impl FrameStats
impl FrameStats
pub fn get_frame_index(&self) -> u64
pub fn get_mut_frame_index(&mut self) -> &mut u64
pub fn set_frame_index(&mut self, val: u64) -> &mut Self
pub fn get_active_mode(&self) -> RenderMode
pub fn get_mut_active_mode(&mut self) -> &mut RenderMode
pub fn set_active_mode(&mut self, val: RenderMode) -> &mut Self
pub fn get_active_backend(&self) -> GraphicsBackend
pub fn get_mut_active_backend(&mut self) -> &mut GraphicsBackend
pub fn set_active_backend(&mut self, val: GraphicsBackend) -> &mut Self
pub fn get_layout_nodes(&self) -> usize
pub fn get_mut_layout_nodes(&mut self) -> &mut usize
pub fn set_layout_nodes(&mut self, val: usize) -> &mut Self
pub fn get_layout_skipped(&self) -> usize
pub fn get_mut_layout_skipped(&mut self) -> &mut usize
pub fn set_layout_skipped(&mut self, val: usize) -> &mut Self
pub fn get_draw_commands(&self) -> usize
pub fn get_mut_draw_commands(&mut self) -> &mut usize
pub fn set_draw_commands(&mut self, val: usize) -> &mut Self
pub fn get_draw_batches(&self) -> usize
pub fn get_mut_draw_batches(&mut self) -> &mut usize
pub fn set_draw_batches(&mut self, val: usize) -> &mut Self
pub fn get_pixels_shaded(&self) -> usize
pub fn get_mut_pixels_shaded(&mut self) -> &mut usize
pub fn set_pixels_shaded(&mut self, val: usize) -> &mut Self
pub fn get_frame_hash(&self) -> u64
pub fn get_mut_frame_hash(&mut self) -> &mut u64
pub fn set_frame_hash(&mut self, val: u64) -> &mut Self
pub fn get_composite_only(&self) -> bool
pub fn get_mut_composite_only(&mut self) -> &mut bool
pub fn set_composite_only(&mut self, val: bool) -> &mut Self
pub fn get_gpu_direct_draw(&self) -> bool
pub fn get_mut_gpu_direct_draw(&mut self) -> &mut bool
pub fn set_gpu_direct_draw(&mut self, val: bool) -> &mut Self
pub fn get_cpu_rgba_upload_bytes(&self) -> usize
pub fn get_mut_cpu_rgba_upload_bytes(&mut self) -> &mut usize
pub fn set_cpu_rgba_upload_bytes(&mut self, val: usize) -> &mut Self
pub fn get_submit_outcome(&self) -> FrameSubmitOutcome
pub fn get_mut_submit_outcome(&mut self) -> &mut FrameSubmitOutcome
pub fn set_submit_outcome(&mut self, val: FrameSubmitOutcome) -> &mut Self
pub fn get_wait_in_flight(&self) -> bool
pub fn get_mut_wait_in_flight(&mut self) -> &mut bool
pub fn set_wait_in_flight(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for FrameStats
impl Clone for FrameStats
impl Copy for FrameStats
Source§impl Debug for FrameStats
impl Debug for FrameStats
Source§impl Default for FrameStats
impl Default for FrameStats
impl Eq for FrameStats
Source§impl Hash for FrameStats
impl Hash for FrameStats
Source§impl PartialEq for FrameStats
impl PartialEq for FrameStats
impl StructuralPartialEq for FrameStats
Auto Trait Implementations§
impl Forget for FrameStats
impl Freeze for FrameStats
impl Move for FrameStats
impl RefUnwindSafe for FrameStats
impl Send for FrameStats
impl Sync for FrameStats
impl Unpin for FrameStats
impl UnsafeUnpin for FrameStats
impl UnwindSafe for FrameStats
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