[−][src]Struct processing::draw_parameters::Stencil
Describes the parameters that must be used for the stencil operations when drawing.
Fields
test_clockwise: StencilTest
A comparison against the existing value in the stencil buffer.
Only relevant for faces that are clockwise on the target surface. Other faces, points and
lines use stencil_test_counter_clockwise
instead.
The default value is AlwaysPass
.
reference_value_clockwise: i32
Reference value that is used by stencil_test_clockwise
, stencil_fail_operation_clockwise
,
stencil_pass_depth_fail_operation_clockwise
and stencil_depth_pass_operation_clockwise
.
write_mask_clockwise: u32
Allows specifying a mask when writing data on the stencil buffer.
Only relevant for faces that are clockwise on the target surface. Other faces, points and
lines use stencil_write_mask_counter_clockwise
instead.
The default value is 0xffffffff
.
fail_operation_clockwise: StencilOperation
Specifies the operation to do when a fragment fails the stencil test.
The stencil test is the test specified by stencil_test_clockwise
.
Only relevant for faces that are clockwise on the target surface. Other faces, points and
lines use stencil_fail_operation_counter_clockwise
instead.
The default value is Keep
.
pass_depth_fail_operation_clockwise: StencilOperation
Specifies the operation to do when a fragment passes the stencil test but fails the depth test.
The stencil test is the test specified by stencil_test_clockwise
.
Only relevant for faces that are clockwise on the target surface. Other faces, points and
lines use stencil_pass_depth_fail_operation_counter_clockwise
instead.
The default value is Keep
.
depth_pass_operation_clockwise: StencilOperation
Specifies the operation to do when a fragment passes both the stencil and depth tests.
The stencil test is the test specified by stencil_test_clockwise
.
Only relevant for faces that are clockwise on the target surface. Other faces, points and
lines use stencil_depth_pass_operation_counter_clockwise
instead.
The default value is Keep
.
test_counter_clockwise: StencilTest
A comparaison against the existing value in the stencil buffer.
Only relevant for points, lines and faces that are counter-clockwise on the target surface.
Other faces use stencil_test_counter_clockwise
instead.
The default value is AlwaysPass
.
reference_value_counter_clockwise: i32
Reference value that is used by stencil_test_counter_clockwise
,
stencil_fail_operation_counter_clockwise
,
stencil_pass_depth_fail_operation_counter_clockwise
and
stencil_depth_pass_operation_counter_clockwise
.
write_mask_counter_clockwise: u32
Allows specifying a mask when writing data on the stencil buffer.
Only relevant for points, lines and faces that are counter-clockwise on the target surface.
Other faces use stencil_write_mask_clockwise
instead.
The default value is 0xffffffff
.
fail_operation_counter_clockwise: StencilOperation
Specifies the operation to do when a fragment fails the stencil test.
The stencil test is the test specified by stencil_test_counter_clockwise
.
Only relevant for faces that are counter-clockwise on the target surface. Other faces
use stencil_fail_operation_clockwise
instead.
The default value is Keep
.
pass_depth_fail_operation_counter_clockwise: StencilOperation
Specifies the operation to do when a fragment passes the stencil test but fails the depth test.
The stencil test is the test specified by stencil_test_counter_clockwise
.
Only relevant for faces that are counter-clockwise on the target surface. Other faces
use stencil_pass_depth_fail_operation_clockwise
instead.
The default value is Keep
.
depth_pass_operation_counter_clockwise: StencilOperation
Specifies the operation to do when a fragment passes both the stencil and depth tests.
The stencil test is the test specified by stencil_test_counter_clockwise
.
Only relevant for faces that are counter-clockwise on the target surface. Other faces
use stencil_depth_pass_operation_clockwise
instead.
The default value is Keep
.
Trait Implementations
impl Clone for Stencil
[src]
fn clone(&self) -> Stencil
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Stencil
[src]
impl Copy for Stencil
[src]
impl Default for Stencil
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[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>(size: usize, f: 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(ptr: *mut (), size: usize) -> Option<*mut T>
[src]
fn is_size_suitable(size: usize) -> bool
[src]
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.