Struct vulkano::pipeline::graphics::depth_stencil::DepthStencilStateFlags
source · pub struct DepthStencilStateFlags(/* private fields */);
Expand description
Flags specifying additional properties of the depth/stencil state.
Implementations§
source§impl DepthStencilStateFlags
impl DepthStencilStateFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a DepthStencilStateFlags
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
Trait Implementations§
source§impl BitAnd for DepthStencilStateFlags
impl BitAnd for DepthStencilStateFlags
source§impl BitAndAssign for DepthStencilStateFlags
impl BitAndAssign for DepthStencilStateFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for DepthStencilStateFlags
impl BitOr for DepthStencilStateFlags
source§impl BitOrAssign for DepthStencilStateFlags
impl BitOrAssign for DepthStencilStateFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for DepthStencilStateFlags
impl BitXor for DepthStencilStateFlags
source§impl BitXorAssign for DepthStencilStateFlags
impl BitXorAssign for DepthStencilStateFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for DepthStencilStateFlags
impl Clone for DepthStencilStateFlags
source§fn clone(&self) -> DepthStencilStateFlags
fn clone(&self) -> DepthStencilStateFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DepthStencilStateFlags
impl Debug for DepthStencilStateFlags
source§impl Default for DepthStencilStateFlags
impl Default for DepthStencilStateFlags
source§impl From<DepthStencilStateFlags> for PipelineDepthStencilStateCreateFlags
impl From<DepthStencilStateFlags> for PipelineDepthStencilStateCreateFlags
source§fn from(val: DepthStencilStateFlags) -> Self
fn from(val: DepthStencilStateFlags) -> Self
Converts to this type from the input type.
source§impl From<PipelineDepthStencilStateCreateFlags> for DepthStencilStateFlags
impl From<PipelineDepthStencilStateCreateFlags> for DepthStencilStateFlags
source§fn from(val: PipelineDepthStencilStateCreateFlags) -> Self
fn from(val: PipelineDepthStencilStateCreateFlags) -> Self
Converts to this type from the input type.
source§impl Hash for DepthStencilStateFlags
impl Hash for DepthStencilStateFlags
source§impl PartialEq for DepthStencilStateFlags
impl PartialEq for DepthStencilStateFlags
source§fn eq(&self, other: &DepthStencilStateFlags) -> bool
fn eq(&self, other: &DepthStencilStateFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for DepthStencilStateFlags
impl Sub for DepthStencilStateFlags
source§impl SubAssign for DepthStencilStateFlags
impl SubAssign for DepthStencilStateFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for DepthStencilStateFlags
impl Eq for DepthStencilStateFlags
impl StructuralEq for DepthStencilStateFlags
impl StructuralPartialEq for DepthStencilStateFlags
Auto Trait Implementations§
impl RefUnwindSafe for DepthStencilStateFlags
impl Send for DepthStencilStateFlags
impl Sync for DepthStencilStateFlags
impl Unpin for DepthStencilStateFlags
impl UnwindSafe for DepthStencilStateFlags
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more