Enum bevy_retrograde::core::luminance::depth_test::DepthComparison [−]
pub enum DepthComparison { Never, Always, Equal, NotEqual, Less, LessOrEqual, Greater, GreaterOrEqual, }
Expand description
Depth comparison to perform while depth test. a
is the incoming fragment’s depth and b is the
fragment’s depth that is already stored.
Variants
Depth test never succeeds.
Depth test always succeeds.
Depth test succeeds if a == b
.
Depth test succeeds if a != b
.
Depth test succeeds if a < b
.
Depth test succeeds if a <= b
.
Depth test succeeds if a > b
.
Depth test succeeds if a >= b
.
Trait Implementations
impl Clone for DepthComparison
impl Clone for DepthComparison
pub fn clone(&self) -> DepthComparison
pub fn clone(&self) -> DepthComparison
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for DepthComparison
impl Debug for DepthComparison
impl PartialEq<DepthComparison> for DepthComparison
impl PartialEq<DepthComparison> for DepthComparison
impl Copy for DepthComparison
impl Eq for DepthComparison
impl StructuralEq for DepthComparison
impl StructuralPartialEq for DepthComparison
Auto Trait Implementations
impl RefUnwindSafe for DepthComparison
impl Send for DepthComparison
impl Sync for DepthComparison
impl Unpin for DepthComparison
impl UnwindSafe for DepthComparison
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
pub fn vzip(self) -> V