[−][src]Enum glium::StencilTest
Specifies which comparison the GPU will do to determine whether a sample passes the stencil
test. The general equation is (ref & mask) CMP (stencil & mask)
, where ref
is the reference
value (stencil_reference_value_clockwise
or stencil_reference_value_counter_clockwise
),
CMP
is the comparison chosen, and stencil
is the current value in the stencil buffer.
Variants
The stencil test always passes.
The stencil test always fails.
(ref & mask) < (stencil & mask)
Fields of IfLess
mask: u32
The mask that is and'ed with the reference value and stencil buffer.
(ref & mask) <= (stencil & mask)
Fields of IfLessOrEqual
mask: u32
The mask that is and'ed with the reference value and stencil buffer.
(ref & mask) > (stencil & mask)
Fields of IfMore
mask: u32
The mask that is and'ed with the reference value and stencil buffer.
(ref & mask) >= (stencil & mask)
Fields of IfMoreOrEqual
mask: u32
The mask that is and'ed with the reference value and stencil buffer.
(ref & mask) == (stencil & mask)
Fields of IfEqual
mask: u32
The mask that is and'ed with the reference value and stencil buffer.
(ref & mask) != (stencil & mask)
Fields of IfNotEqual
mask: u32
The mask that is and'ed with the reference value and stencil buffer.
Trait Implementations
impl Clone for StencilTest
[src]
fn clone(&self) -> StencilTest
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StencilTest
[src]
impl Debug for StencilTest
[src]
impl Eq for StencilTest
[src]
impl PartialEq<StencilTest> for StencilTest
[src]
fn eq(&self, other: &StencilTest) -> bool
[src]
fn ne(&self, other: &StencilTest) -> bool
[src]
impl StructuralEq for StencilTest
[src]
impl StructuralPartialEq for StencilTest
[src]
Auto Trait Implementations
impl RefUnwindSafe for StencilTest
impl Send for StencilTest
impl Sync for StencilTest
impl Unpin for StencilTest
impl UnwindSafe for StencilTest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T where
T: Copy,
[src]
T: Copy,
type Owned = T
A type that holds a sized version of the content.
fn read<F, E>(usize, F) -> Result<T, E> where
F: FnOnce(&mut T) -> Result<(), E>,
[src]
F: FnOnce(&mut T) -> Result<(), E>,
fn get_elements_size() -> usize
[src]
fn to_void_ptr(&Self) -> *const ()
[src]
fn ref_from_ptr(*mut (), usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,