pub(crate) struct DepthState {
bounds: Option<Span>,
max_draw_id: u32,
}Expand description
Coarse state for the depth buffer.
Fields§
§bounds: Option<Span>Coarse union of all depth-tracked opaque spans in this row.
max_draw_id: u32Maximum draw ID of any depth-trackable opaque command in this row.
Draw IDs start at 1, so 0 represents “no opaque command”.
Implementations§
Source§impl DepthState
impl DepthState
pub(crate) fn reset(&mut self)
pub(crate) fn include_span(&mut self, span: Span, draw_id: u32)
Trait Implementations§
Source§impl Clone for DepthState
impl Clone for DepthState
Source§fn clone(&self) -> DepthState
fn clone(&self) -> DepthState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DepthState
impl Debug for DepthState
Source§impl Default for DepthState
impl Default for DepthState
Source§fn default() -> DepthState
fn default() -> DepthState
Returns the “default value” for a type. Read more
impl Copy for DepthState
Auto Trait Implementations§
impl Freeze for DepthState
impl RefUnwindSafe for DepthState
impl Send for DepthState
impl Sync for DepthState
impl Unpin for DepthState
impl UnsafeUnpin for DepthState
impl UnwindSafe for DepthState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more