Struct vulkano::swapchain::CompositeAlphas
source · pub struct CompositeAlphas(/* private fields */);
Expand description
A set of CompositeAlpha
values.
Implementations§
source§impl CompositeAlphas
impl CompositeAlphas
sourcepub const OPAQUE: Self = _
pub const OPAQUE: Self = _
The alpha channel of the image is ignored. All the pixels are considered as if they have a value of 1.0.
sourcepub const PRE_MULTIPLIED: Self = _
pub const PRE_MULTIPLIED: Self = _
The alpha channel of the image is respected. The color channels are expected to have already been multiplied by the alpha value.
sourcepub const POST_MULTIPLIED: Self = _
pub const POST_MULTIPLIED: Self = _
The alpha channel of the image is respected. The color channels will be multiplied by the alpha value by the compositor before being added to what is behind.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a CompositeAlphas
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.
sourcepub fn contains_enum(self, val: CompositeAlpha) -> bool
pub fn contains_enum(self, val: CompositeAlpha) -> bool
Returns whether self
contains the flag corresponding to val
.
Trait Implementations§
source§impl BitAnd for CompositeAlphas
impl BitAnd for CompositeAlphas
source§impl BitAndAssign for CompositeAlphas
impl BitAndAssign for CompositeAlphas
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOr for CompositeAlphas
impl BitOr for CompositeAlphas
source§impl BitOrAssign for CompositeAlphas
impl BitOrAssign for CompositeAlphas
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXor for CompositeAlphas
impl BitXor for CompositeAlphas
source§impl BitXorAssign for CompositeAlphas
impl BitXorAssign for CompositeAlphas
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for CompositeAlphas
impl Clone for CompositeAlphas
source§fn clone(&self) -> CompositeAlphas
fn clone(&self) -> CompositeAlphas
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CompositeAlphas
impl Debug for CompositeAlphas
source§impl Default for CompositeAlphas
impl Default for CompositeAlphas
source§impl From<CompositeAlpha> for CompositeAlphas
impl From<CompositeAlpha> for CompositeAlphas
source§fn from(val: CompositeAlpha) -> Self
fn from(val: CompositeAlpha) -> Self
source§impl From<CompositeAlphaFlagsKHR> for CompositeAlphas
impl From<CompositeAlphaFlagsKHR> for CompositeAlphas
source§fn from(val: CompositeAlphaFlagsKHR) -> Self
fn from(val: CompositeAlphaFlagsKHR) -> Self
source§impl From<CompositeAlphas> for CompositeAlphaFlagsKHR
impl From<CompositeAlphas> for CompositeAlphaFlagsKHR
source§fn from(val: CompositeAlphas) -> Self
fn from(val: CompositeAlphas) -> Self
source§impl FromIterator<CompositeAlpha> for CompositeAlphas
impl FromIterator<CompositeAlpha> for CompositeAlphas
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CompositeAlpha>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = CompositeAlpha>,
source§impl Hash for CompositeAlphas
impl Hash for CompositeAlphas
source§impl IntoIterator for CompositeAlphas
impl IntoIterator for CompositeAlphas
§type Item = CompositeAlpha
type Item = CompositeAlpha
§type IntoIter = Flatten<IntoIter<Option<<CompositeAlphas as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<CompositeAlphas as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
source§impl PartialEq for CompositeAlphas
impl PartialEq for CompositeAlphas
source§fn eq(&self, other: &CompositeAlphas) -> bool
fn eq(&self, other: &CompositeAlphas) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for CompositeAlphas
impl Sub for CompositeAlphas
source§impl SubAssign for CompositeAlphas
impl SubAssign for CompositeAlphas
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more