Struct vulkano::pipeline::graphics::depth_stencil::StencilState
source · [−]pub struct StencilState {
pub enable_dynamic: bool,
pub front: StencilOpState,
pub back: StencilOpState,
}
Expand description
The state in a graphics pipeline describing how the stencil test should behave when enabled.
Dynamic state can only be enabled or disabled for both faces at once. Therefore, the dynamic
state values in StencilOpState
, must match: the values for front
and back
must either both
be Fixed
or both be Dynamic
.
Fields
enable_dynamic: bool
Sets whether stencil testing should be enabled and disabled dynamically. If set to
false
, stencil testing is always enabled.
If set to true
, the device API version must be at least 1.3, or the
extended_dynamic_state
feature must be
enabled on the device.
front: StencilOpState
The stencil operation state to use for points and lines, and for triangles whose front is facing the user.
back: StencilOpState
The stencil operation state to use for triangles whose back is facing the user.
Trait Implementations
sourceimpl Clone for StencilState
impl Clone for StencilState
sourcefn clone(&self) -> StencilState
fn clone(&self) -> StencilState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for StencilState
impl Send for StencilState
impl Sync for StencilState
impl Unpin for StencilState
impl UnwindSafe for StencilState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more