pub struct CompositeAlphaFlags(/* private fields */);Available on crate feature
VK_KHR_surface only.Expand description
Alpha compositing modes supported on a device
Implementations§
Source§impl CompositeAlphaFlags
impl CompositeAlphaFlags
Source§impl CompositeAlphaFlags
impl CompositeAlphaFlags
Sourcepub const OPAQUE: Self
pub const OPAQUE: Self
The alpha channel, if it exists, of the image is ignored in the compositing process
Sourcepub const PRE_MULTIPLIED: Self
pub const PRE_MULTIPLIED: Self
The alpha channel, if it exists, of the images is respected in the compositing process. The non-alpha channels of the image are expected to already be multiplied by the alpha channel by the application
Sourcepub const POST_MULTIPLIED: Self
pub const POST_MULTIPLIED: Self
The alpha channel, if it exists, of the images is respected in the compositing process. The non-alpha channels of the image are not expected to already be multiplied by the alpha channel by the application; instead, the compositor will multiply the non-alpha channels of the image by the alpha channel during compositing
Trait Implementations§
Source§impl BitAnd for CompositeAlphaFlags
impl BitAnd for CompositeAlphaFlags
Source§impl BitAndAssign for CompositeAlphaFlags
impl BitAndAssign for CompositeAlphaFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for CompositeAlphaFlags
impl BitOr for CompositeAlphaFlags
Source§impl BitOrAssign for CompositeAlphaFlags
impl BitOrAssign for CompositeAlphaFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for CompositeAlphaFlags
impl Clone for CompositeAlphaFlags
Source§fn clone(&self) -> CompositeAlphaFlags
fn clone(&self) -> CompositeAlphaFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompositeAlphaFlags
impl Eq for CompositeAlphaFlags
Source§impl From<CompositeAlphaFlags> for VkCompositeAlphaFlagsKHR
impl From<CompositeAlphaFlags> for VkCompositeAlphaFlagsKHR
Source§fn from(value: CompositeAlphaFlags) -> Self
fn from(value: CompositeAlphaFlags) -> Self
Converts to this type from the input type.
Source§impl Hash for CompositeAlphaFlags
impl Hash for CompositeAlphaFlags
Source§impl Not for CompositeAlphaFlags
impl Not for CompositeAlphaFlags
Source§impl Ord for CompositeAlphaFlags
impl Ord for CompositeAlphaFlags
Source§fn cmp(&self, other: &CompositeAlphaFlags) -> Ordering
fn cmp(&self, other: &CompositeAlphaFlags) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CompositeAlphaFlags
impl PartialEq for CompositeAlphaFlags
Source§impl PartialOrd for CompositeAlphaFlags
impl PartialOrd for CompositeAlphaFlags
impl StructuralPartialEq for CompositeAlphaFlags
Auto Trait Implementations§
impl Freeze for CompositeAlphaFlags
impl RefUnwindSafe for CompositeAlphaFlags
impl Send for CompositeAlphaFlags
impl Sync for CompositeAlphaFlags
impl Unpin for CompositeAlphaFlags
impl UnsafeUnpin for CompositeAlphaFlags
impl UnwindSafe for CompositeAlphaFlags
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