pub enum DrawState {
Unset,
Culled,
PassThrough,
Visible {
vis_flags: PrimitiveVisibilityFlags,
sub_slice_index: SubSliceIndex,
},
}Expand description
Contains the current state of the primitive’s visibility.
Variants§
Unset
Uninitialized - this should never be encountered after prim reset
Culled
Culled for being off-screen, or not possible to render (e.g. missing image resource)
PassThrough
A picture that doesn’t have a surface - primitives are composed into the parent picture with a surface.
Visible
A primitive that has been found to be visible
Fields
§
vis_flags: PrimitiveVisibilityFlagsA set of flags that define how this primitive should be handled during batching of visible primitives.
§
sub_slice_index: SubSliceIndexSub-slice within the picture cache that this prim exists on
Trait Implementations§
impl Copy for DrawState
Auto Trait Implementations§
impl Freeze for DrawState
impl RefUnwindSafe for DrawState
impl Send for DrawState
impl Sync for DrawState
impl Unpin for DrawState
impl UnsafeUnpin for DrawState
impl UnwindSafe for DrawState
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