#[non_exhaustive]pub struct GpuTiming {
pub submitted: Instant,
pub world: Duration,
pub output: Duration,
}Expand description
The GPU’s time over a frame’s drawing: each of the renderer’s passes,
as its timers measured them, read back frames later
(Profiler::set_gpu).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.submitted: InstantWhen the processor started the drawing: the GPU started timing its passes later, no sooner than the renderer began timing the world pass. The timers measure how long, not when, so the trace places the passes from here.
world: DurationThe world pass: the world drawn into the virtual image.
output: DurationThe output pass: the virtual image onto the window, then the UI.
Implementations§
Trait Implementations§
impl Copy for GpuTiming
impl Eq for GpuTiming
impl StructuralPartialEq for GpuTiming
Auto Trait Implementations§
impl Forget for GpuTiming
impl Freeze for GpuTiming
impl Move for GpuTiming
impl RefUnwindSafe for GpuTiming
impl Send for GpuTiming
impl Sync for GpuTiming
impl Unpin for GpuTiming
impl UnsafeUnpin for GpuTiming
impl UnwindSafe for GpuTiming
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