Enum vulkano::display::DisplayPlaneAlpha
source · #[non_exhaustive]#[repr(u32)]pub enum DisplayPlaneAlpha {
Opaque = 1,
Global = 2,
PerPixel = 4,
PerPixelPremultiplied = 8,
}
Expand description
The alpha blending mode to use for a display mode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Opaque = 1
The source image is treated as opaque.
Global = 2
Use a single global alpha value that will be used for all pixels in the source image.
PerPixel = 4
Use the alpha component of each pixel in the source image.
PerPixelPremultiplied = 8
Use the alpha component of each pixel in the source image, but treat the other components as having already been multiplied by the alpha component.
Trait Implementations§
source§impl Clone for DisplayPlaneAlpha
impl Clone for DisplayPlaneAlpha
source§fn clone(&self) -> DisplayPlaneAlpha
fn clone(&self) -> DisplayPlaneAlpha
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 DisplayPlaneAlpha
impl Debug for DisplayPlaneAlpha
source§impl From<DisplayPlaneAlpha> for DisplayPlaneAlphaFlags
impl From<DisplayPlaneAlpha> for DisplayPlaneAlphaFlags
source§fn from(val: DisplayPlaneAlpha) -> Self
fn from(val: DisplayPlaneAlpha) -> Self
Converts to this type from the input type.
source§impl From<DisplayPlaneAlpha> for DisplayPlaneAlphaFlagsKHR
impl From<DisplayPlaneAlpha> for DisplayPlaneAlphaFlagsKHR
source§fn from(val: DisplayPlaneAlpha) -> Self
fn from(val: DisplayPlaneAlpha) -> Self
Converts to this type from the input type.
source§impl FromIterator<DisplayPlaneAlpha> for DisplayPlaneAlphaFlags
impl FromIterator<DisplayPlaneAlpha> for DisplayPlaneAlphaFlags
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = DisplayPlaneAlpha>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = DisplayPlaneAlpha>,
Creates a value from an iterator. Read more
source§impl Hash for DisplayPlaneAlpha
impl Hash for DisplayPlaneAlpha
source§impl PartialEq for DisplayPlaneAlpha
impl PartialEq for DisplayPlaneAlpha
source§fn eq(&self, other: &DisplayPlaneAlpha) -> bool
fn eq(&self, other: &DisplayPlaneAlpha) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DisplayPlaneAlpha
impl Eq for DisplayPlaneAlpha
impl StructuralEq for DisplayPlaneAlpha
impl StructuralPartialEq for DisplayPlaneAlpha
Auto Trait Implementations§
impl RefUnwindSafe for DisplayPlaneAlpha
impl Send for DisplayPlaneAlpha
impl Sync for DisplayPlaneAlpha
impl Unpin for DisplayPlaneAlpha
impl UnwindSafe for DisplayPlaneAlpha
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