pub struct GpuTimings {
pub upload_ms: f64,
pub compute_ms: f64,
pub kernel_ms: Option<f64>,
pub bands: u32,
}Expand description
Per-stage timings of one run, in milliseconds.
Fields§
§upload_ms: f64Host → device: time the host spent staging input (summed over bands; with several bands it overlaps the kernels of earlier bands).
compute_ms: f64The rest of the run until the result is complete (wall clock).
kernel_ms: Option<f64>Kernel execution measured with GPU timestamps (summed over bands), when supported.
bands: u32Number of bands the frame was processed in (1 = untiled).
Trait Implementations§
Source§impl Clone for GpuTimings
impl Clone for GpuTimings
impl Copy for GpuTimings
Source§impl Debug for GpuTimings
impl Debug for GpuTimings
Source§impl Default for GpuTimings
impl Default for GpuTimings
Source§impl PartialEq for GpuTimings
impl PartialEq for GpuTimings
impl StructuralPartialEq for GpuTimings
Auto Trait Implementations§
impl Freeze for GpuTimings
impl RefUnwindSafe for GpuTimings
impl Send for GpuTimings
impl Sync for GpuTimings
impl Unpin for GpuTimings
impl UnsafeUnpin for GpuTimings
impl UnwindSafe for GpuTimings
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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