Struct sierra::PresentationTiming
source · pub struct PresentationTiming {
pub present_id: u32,
pub desired_present_time: u64,
pub actual_present_time: u64,
pub earliest_present_time: u64,
pub present_margin: u64,
}
Expand description
Fields§
§present_id: u32
An application-provided value that was given to a previous [Queue::present_with_timing
]
It can be used to uniquely identify a previous present with the [Queue::present_with_timing
].
desired_present_time: u64
An application-provided value that was given to a previous [Queue::present_with_timing
].
If non-zero, it was used by the application to indicate that an image not be presented any sooner than [desired_present_time
].
actual_present_time: u64
The time when the image of the surface was actually displayed.
earliest_present_time: u64
The time when the image of the surface could have been displayed.
This may differ from [actual_present_time
] if the application requested that the image be presented no sooner than [desired_present_time
]
present_margin: u64
An indication of how early the [Queue::present_with_timing
] was processed
compared to how soon it needed to be processed, and still be presented at [earliest_present_time
].
Trait Implementations§
source§impl Clone for PresentationTiming
impl Clone for PresentationTiming
source§fn clone(&self) -> PresentationTiming
fn clone(&self) -> PresentationTiming
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PresentationTiming
impl Debug for PresentationTiming
source§impl Hash for PresentationTiming
impl Hash for PresentationTiming
source§impl PartialEq<PresentationTiming> for PresentationTiming
impl PartialEq<PresentationTiming> for PresentationTiming
source§fn eq(&self, other: &PresentationTiming) -> bool
fn eq(&self, other: &PresentationTiming) -> bool
self
and other
values to be equal, and is used
by ==
.