Enum bevy_render::texture::ImageCompareFunction
source · pub enum ImageCompareFunction {
Never,
Less,
Equal,
LessEqual,
Greater,
NotEqual,
GreaterEqual,
Always,
}
Expand description
Comparison function used for depth and stencil operations.
This type mirrors wgpu::CompareFunction
.
Variants§
Never
Function never passes
Less
Function passes if new value less than existing value
Equal
Function passes if new value is equal to existing value. When using
this compare function, make sure to mark your Vertex Shader’s @builtin(position)
output as @invariant
to prevent artifacting.
LessEqual
Function passes if new value is less than or equal to existing value
Greater
Function passes if new value is greater than existing value
NotEqual
Function passes if new value is not equal to existing value. When using
this compare function, make sure to mark your Vertex Shader’s @builtin(position)
output as @invariant
to prevent artifacting.
GreaterEqual
Function passes if new value is greater than or equal to existing value
Always
Function always passes
Trait Implementations§
source§impl Clone for ImageCompareFunction
impl Clone for ImageCompareFunction
source§fn clone(&self) -> ImageCompareFunction
fn clone(&self) -> ImageCompareFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageCompareFunction
impl Debug for ImageCompareFunction
source§impl<'de> Deserialize<'de> for ImageCompareFunction
impl<'de> Deserialize<'de> for ImageCompareFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl From<CompareFunction> for ImageCompareFunction
impl From<CompareFunction> for ImageCompareFunction
source§fn from(value: CompareFunction) -> Self
fn from(value: CompareFunction) -> Self
source§impl From<ImageCompareFunction> for CompareFunction
impl From<ImageCompareFunction> for CompareFunction
source§fn from(value: ImageCompareFunction) -> Self
fn from(value: ImageCompareFunction) -> Self
source§impl Serialize for ImageCompareFunction
impl Serialize for ImageCompareFunction
impl Copy for ImageCompareFunction
Auto Trait Implementations§
impl RefUnwindSafe for ImageCompareFunction
impl Send for ImageCompareFunction
impl Sync for ImageCompareFunction
impl Unpin for ImageCompareFunction
impl UnwindSafe for ImageCompareFunction
Blanket Implementations§
source§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
source§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist.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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.