#[repr(i32)]pub enum ComparisonFunc {
None = 0,
Never = 1,
Less = 2,
Equal = 3,
LessEqual = 4,
Greater = 5,
NotEqual = 6,
GreaterEqual = 7,
Always = 8,
}Expand description
Specifies comparison options.
For more information: D3D12_COMPARISON_FUNC enumeration
Variants§
None = 0
None
Never = 1
Never pass the comparison.
Less = 2
If the source data is less than the destination data, the comparison passes.
Equal = 3
If the source data is equal to the destination data, the comparison passes.
LessEqual = 4
If the source data is less than or equal to the destination data, the comparison passes.
Greater = 5
If the source data is greater than the destination data, the comparison passes.
NotEqual = 6
If the source data is not equal to the destination data, the comparison passes.
GreaterEqual = 7
If the source data is greater than or equal to the destination data, the comparison passes.
Always = 8
Always pass the comparison.
Implementations§
Trait Implementations§
Source§impl Clone for ComparisonFunc
impl Clone for ComparisonFunc
Source§fn clone(&self) -> ComparisonFunc
fn clone(&self) -> ComparisonFunc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComparisonFunc
impl Debug for ComparisonFunc
Source§impl Default for ComparisonFunc
impl Default for ComparisonFunc
Source§fn default() -> ComparisonFunc
fn default() -> ComparisonFunc
Returns the “default value” for a type. Read more
Source§impl From<D3D12_COMPARISON_FUNC> for ComparisonFunc
impl From<D3D12_COMPARISON_FUNC> for ComparisonFunc
Source§impl Hash for ComparisonFunc
impl Hash for ComparisonFunc
Source§impl PartialEq for ComparisonFunc
impl PartialEq for ComparisonFunc
impl Copy for ComparisonFunc
impl Eq for ComparisonFunc
impl StructuralPartialEq for ComparisonFunc
Auto Trait Implementations§
impl Freeze for ComparisonFunc
impl RefUnwindSafe for ComparisonFunc
impl Send for ComparisonFunc
impl Sync for ComparisonFunc
impl Unpin for ComparisonFunc
impl UnwindSafe for ComparisonFunc
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