Struct wgpu::PresentationTimestamp
pub struct PresentationTimestamp(pub u128);
Expand description
Nanosecond timestamp used by the presentation engine.
The specific clock depends on the window system integration (WSI) API used.
WSI | Clock |
IDXGISwapchain | QueryPerformanceCounter |
IPresentationManager | QueryInterruptTimePrecise |
CAMetalLayer | mach_absolute_time |
VK_GOOGLE_display_timing | clock_gettime(CLOCK_MONOTONIC) |
Tuple Fields§
§0: u128
Timestamp in nanoseconds.
Implementations§
§impl PresentationTimestamp
impl PresentationTimestamp
pub const INVALID_TIMESTAMP: PresentationTimestamp = _
pub const INVALID_TIMESTAMP: PresentationTimestamp = _
A timestamp that is invalid due to the platform not having a timestamp system.
pub fn is_invalid(self) -> bool
pub fn is_invalid(self) -> bool
Returns true if this timestamp is the invalid timestamp.
Trait Implementations§
§impl Clone for PresentationTimestamp
impl Clone for PresentationTimestamp
§fn clone(&self) -> PresentationTimestamp
fn clone(&self) -> PresentationTimestamp
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for PresentationTimestamp
impl Debug for PresentationTimestamp
§impl Ord for PresentationTimestamp
impl Ord for PresentationTimestamp
§fn cmp(&self, other: &PresentationTimestamp) -> Ordering
fn cmp(&self, other: &PresentationTimestamp) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for PresentationTimestamp
impl PartialEq for PresentationTimestamp
§fn eq(&self, other: &PresentationTimestamp) -> bool
fn eq(&self, other: &PresentationTimestamp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for PresentationTimestamp
impl PartialOrd for PresentationTimestamp
§fn partial_cmp(&self, other: &PresentationTimestamp) -> Option<Ordering>
fn partial_cmp(&self, other: &PresentationTimestamp) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PresentationTimestamp
impl Eq for PresentationTimestamp
impl StructuralEq for PresentationTimestamp
impl StructuralPartialEq for PresentationTimestamp
Auto Trait Implementations§
impl RefUnwindSafe for PresentationTimestamp
impl Send for PresentationTimestamp
impl Sync for PresentationTimestamp
impl Unpin for PresentationTimestamp
impl UnwindSafe for PresentationTimestamp
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more