#[repr(u32)]pub enum TexSampleComp {
None = 0,
Less = 1,
LessOrEq = 2,
Greater = 3,
GreaterOrEq = 4,
Equal = 5,
NotEqual = 6,
Always = 7,
Never = 8,
}
Expand description
How does the GPU compare sampled values against existing texture data? This is mostly useful for depth textures
where the hardware can do a comparison (ex: shadow map lookups) as part of the sampling operation. Default is
None, which means no comparison test is performed.
These map directly to the native tex_sample_comp_
values.
https://stereokit.net/Pages/StereoKit/TexSampleComp.html
see also Tex
Variants§
None = 0
No comparison test; returns the raw sampled value.
Less = 1
Passes if sampled value is less than the reference.
LessOrEq = 2
Passes if sampled value is less than or equal to the reference.
Greater = 3
Passes if sampled value is greater than the reference.
GreaterOrEq = 4
Passes if sampled value is greater than or equal to the reference.
Equal = 5
Passes if sampled value equals the reference.
NotEqual = 6
Passes if sampled value does not equal the reference.
Always = 7
Always passes (effectively disables depth based rejection, but still channels through comparison hardware).
Never = 8
Never passes.
Trait Implementations§
Source§impl Clone for TexSampleComp
impl Clone for TexSampleComp
Source§fn clone(&self) -> TexSampleComp
fn clone(&self) -> TexSampleComp
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TexSampleComp
impl Debug for TexSampleComp
Source§impl PartialEq for TexSampleComp
impl PartialEq for TexSampleComp
impl Copy for TexSampleComp
impl Eq for TexSampleComp
impl StructuralPartialEq for TexSampleComp
Auto Trait Implementations§
impl Freeze for TexSampleComp
impl RefUnwindSafe for TexSampleComp
impl Send for TexSampleComp
impl Sync for TexSampleComp
impl Unpin for TexSampleComp
impl UnwindSafe for TexSampleComp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.