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
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
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
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.