pub struct WgpuFilterStats {
pub frames: u64,
pub upload_secs: f64,
pub gpu_secs: f64,
pub download_secs: f64,
}Expand description
Cumulative per-stage timings, readable while the filter runs via
crate::wgpu_filter::WgpuFrameFilter::stats_handle.
Fields§
§frames: u64Number of frames fully processed (readback completed).
upload_secs: f64CPU time spent uploading planes/uniforms and encoding GPU passes.
gpu_secs: f64Wall time the pipeline thread spent blocked waiting for GPU results.
With frames_in_flight > 1, GPU work overlaps the next frame’s CPU
work, so this is typically much smaller than the actual GPU time.
download_secs: f64CPU time spent copying mapped readback bytes into output frames.
Trait Implementations§
Source§impl Clone for WgpuFilterStats
impl Clone for WgpuFilterStats
Source§fn clone(&self) -> WgpuFilterStats
fn clone(&self) -> WgpuFilterStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WgpuFilterStats
Source§impl Debug for WgpuFilterStats
impl Debug for WgpuFilterStats
Source§impl Default for WgpuFilterStats
impl Default for WgpuFilterStats
Source§fn default() -> WgpuFilterStats
fn default() -> WgpuFilterStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WgpuFilterStats
impl RefUnwindSafe for WgpuFilterStats
impl Send for WgpuFilterStats
impl Sync for WgpuFilterStats
impl Unpin for WgpuFilterStats
impl UnsafeUnpin for WgpuFilterStats
impl UnwindSafe for WgpuFilterStats
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