pub struct GpuRate { /* private fields */ }Expand description
One device’s rate, shared by every context clone and renderer on it.
Implementations§
Source§impl GpuRate
impl GpuRate
Sourcepub fn ms_per_unit_pixel(&self) -> Option<f64>
pub fn ms_per_unit_pixel(&self) -> Option<f64>
The rate in milliseconds per unit pixel, once seeded.
Sourcepub fn begin_calibration(&self) -> bool
pub fn begin_calibration(&self) -> bool
Returns true once, telling the first caller before seeding to run the calibration draw.
Sourcepub fn seed(&self, measured_ms_per_unit_pixel: f64)
pub fn seed(&self, measured_ms_per_unit_pixel: f64)
Seeds the rate at twice measured_ms_per_unit_pixel, allowing for a cold device.
Sourcepub fn abandon_calibration(&self)
pub fn abandon_calibration(&self)
Allows a later caller to calibrate again after a failed draw.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GpuRate
impl RefUnwindSafe for GpuRate
impl Send for GpuRate
impl Sync for GpuRate
impl Unpin for GpuRate
impl UnsafeUnpin for GpuRate
impl UnwindSafe for GpuRate
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