pub struct TimestampQuery {
pub label: String,
pub begin_ms: f64,
pub end_ms: f64,
}Expand description
A timestamp query pair (begin, end) for a named pass.
On a real GPU this maps to VkQueryPool or wgpu::QuerySet writes at the
start and end of a render/compute pass. Here we store wall-clock
f64 timestamps in milliseconds.
Fields§
§label: StringHuman-readable label for this pass.
begin_ms: f64Begin timestamp in milliseconds (relative to some epoch).
end_ms: f64End timestamp in milliseconds.
Implementations§
Trait Implementations§
Source§impl Clone for TimestampQuery
impl Clone for TimestampQuery
Source§fn clone(&self) -> TimestampQuery
fn clone(&self) -> TimestampQuery
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 moreAuto Trait Implementations§
impl Freeze for TimestampQuery
impl RefUnwindSafe for TimestampQuery
impl Send for TimestampQuery
impl Sync for TimestampQuery
impl Unpin for TimestampQuery
impl UnsafeUnpin for TimestampQuery
impl UnwindSafe for TimestampQuery
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> 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