pub struct ClampedReprojector { /* private fields */ }Expand description
Clamp-aware wrapper for Viture reprojection inside StalePolicy::Predict.
Fresh or merely stale poses reproject through the inner Reprojector with
bounded prediction. A pose whose own age exceeds the prediction clamp returns
the last good frame, so lost tracking cannot extrapolate into an unbounded
warp.
Implementations§
Source§impl ClampedReprojector
impl ClampedReprojector
Sourcepub fn max_predict_ms(&self) -> u64
pub fn max_predict_ms(&self) -> u64
Returns the maximum prediction lead in milliseconds.
Sourcepub fn inner(&self) -> &Reprojector
pub fn inner(&self) -> &Reprojector
Returns the inner reprojector.
Trait Implementations§
Source§impl Debug for ClampedReprojector
impl Debug for ClampedReprojector
Source§impl LocalAdapter for ClampedReprojector
impl LocalAdapter for ClampedReprojector
Auto Trait Implementations§
impl !Freeze for ClampedReprojector
impl !RefUnwindSafe for ClampedReprojector
impl !Send for ClampedReprojector
impl !Sync for ClampedReprojector
impl Unpin for ClampedReprojector
impl UnsafeUnpin for ClampedReprojector
impl UnwindSafe for ClampedReprojector
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