pub(crate) struct RowState {
pub(crate) render_cmds: Vec<RenderCmd>,
pub(crate) depth_cmds: Vec<DepthFill>,
depth: DepthState,
pub(super) layer_depth: usize,
layer_stack: Vec<RowLayerState>,
}Expand description
State for a single row of strips.
Fields§
§render_cmds: Vec<RenderCmd>Normal render commands rendered in back-to-front with depth buffer read.
depth_cmds: Vec<DepthFill>Opaque fill commands rendered front-to-back with depth buffer read and write.
depth: DepthStateState of the depth buffer for this row.
layer_depth: usizeCurrent layer depth.
layer_stack: Vec<RowLayerState>Implementations§
Source§impl RowState
impl RowState
pub(super) fn new() -> Self
fn clear(&mut self)
pub(super) fn push_cmd(&mut self, cmd: RenderCmd)
pub(super) fn push_buf(&mut self)
pub(super) fn pop_buf(&mut self)
pub(super) fn push_depth_fill(&mut self, cmd: DepthFill, draw_id: u32)
pub(crate) fn can_skip_depth(&self, span: Span, draw_id: u32) -> bool
fn include_current_span(&mut self, span: Span)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RowState
impl RefUnwindSafe for RowState
impl Send for RowState
impl Sync for RowState
impl Unpin for RowState
impl UnsafeUnpin for RowState
impl UnwindSafe for RowState
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> 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