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 Freeze for ImageCompareFunction
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<GpuImage>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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.