pub struct DepthCounter { /* private fields */ }Expand description
Hands out the monotonically increasing depths a frame’s draws are stamped with.
Draws are emitted in paint order, so the counter runs from 0 (back-most)
upward and never repeats a value inside one frame. It saturates rather than
wrapping: a frame with more than u32::MAX draws would otherwise reuse a
depth and let a later draw lose the depth test to an earlier one, and the
compiler has no error to report on the frame path for it.
Implementations§
Trait Implementations§
Source§impl Clone for DepthCounter
impl Clone for DepthCounter
impl Copy for DepthCounter
Source§impl Debug for DepthCounter
impl Debug for DepthCounter
Auto Trait Implementations§
impl Freeze for DepthCounter
impl RefUnwindSafe for DepthCounter
impl Send for DepthCounter
impl Sync for DepthCounter
impl Unpin for DepthCounter
impl UnsafeUnpin for DepthCounter
impl UnwindSafe for DepthCounter
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