Struct vulkano::pipeline::graphics::color_blend::ColorComponents
source · [−]Expand description
A mask specifying color components that can be written to a framebuffer attachment.
Fields
r: bool
The red component.
g: bool
The green component.
b: bool
The blue component.
a: bool
The alpha component.
Implementations
sourceimpl ColorComponents
impl ColorComponents
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns a ColorComponents
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 set in self
or other
, but not both.
sourcepub const fn complement(&self) -> Self
pub const fn complement(&self) -> Self
Returns the flags not in self
.
Trait Implementations
sourceimpl BitAnd<ColorComponents> for ColorComponents
impl BitAnd<ColorComponents> for ColorComponents
type Output = ColorComponents
type Output = ColorComponents
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<ColorComponents> for ColorComponents
impl BitAndAssign<ColorComponents> for ColorComponents
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<ColorComponents> for ColorComponents
impl BitOr<ColorComponents> for ColorComponents
type Output = ColorComponents
type Output = ColorComponents
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<ColorComponents> for ColorComponents
impl BitOrAssign<ColorComponents> for ColorComponents
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<ColorComponents> for ColorComponents
impl BitXor<ColorComponents> for ColorComponents
type Output = ColorComponents
type Output = ColorComponents
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<ColorComponents> for ColorComponents
impl BitXorAssign<ColorComponents> for ColorComponents
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for ColorComponents
impl Clone for ColorComponents
sourcefn clone(&self) -> ColorComponents
fn clone(&self) -> ColorComponents
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 moresourceimpl Debug for ColorComponents
impl Debug for ColorComponents
sourceimpl Default for ColorComponents
impl Default for ColorComponents
sourceimpl From<ColorComponentFlags> for ColorComponents
impl From<ColorComponentFlags> for ColorComponents
sourcefn from(val: ColorComponentFlags) -> Self
fn from(val: ColorComponentFlags) -> Self
Converts to this type from the input type.
sourceimpl From<ColorComponents> for ColorComponentFlags
impl From<ColorComponents> for ColorComponentFlags
sourcefn from(val: ColorComponents) -> Self
fn from(val: ColorComponents) -> Self
Converts to this type from the input type.
sourceimpl Hash for ColorComponents
impl Hash for ColorComponents
sourceimpl Not for ColorComponents
impl Not for ColorComponents
type Output = ColorComponents
type Output = ColorComponents
The resulting type after applying the
!
operator.sourceimpl PartialEq<ColorComponents> for ColorComponents
impl PartialEq<ColorComponents> for ColorComponents
sourcefn eq(&self, other: &ColorComponents) -> bool
fn eq(&self, other: &ColorComponents) -> bool
sourceimpl Sub<ColorComponents> for ColorComponents
impl Sub<ColorComponents> for ColorComponents
type Output = ColorComponents
type Output = ColorComponents
The resulting type after applying the
-
operator.sourceimpl SubAssign<ColorComponents> for ColorComponents
impl SubAssign<ColorComponents> for ColorComponents
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for ColorComponents
impl Eq for ColorComponents
impl StructuralEq for ColorComponents
impl StructuralPartialEq for ColorComponents
Auto Trait Implementations
impl RefUnwindSafe for ColorComponents
impl Send for ColorComponents
impl Sync for ColorComponents
impl Unpin for ColorComponents
impl UnwindSafe for ColorComponents
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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