#[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 more