#[repr(u32)]pub enum DisplayPlaneAlpha {
Opaque = 1,
Global = 2,
PerPixel = 4,
PrePixelPremultiplied = 8,
}
Available on crate feature
VK_KHR_display
only.Expand description
Alpha blending type
Variants§
Opaque = 1
The source image will be treated as opaque
Global = 2
A global alpha value must be specified that will be applied to all pixels in the source image
PerPixel = 4
The alpha value will be determined by the alpha channel of the source image’s pixels. If the source format contains no alpha values, no blending will be applied. The source alpha values are not premultiplied into the source image’s other color channels
PrePixelPremultiplied = 8
This is equivalent to PerPixel
except the source alpha values are assumed to be premultiplied into the source image’s other color channels
Trait Implementations§
Source§impl Clone for DisplayPlaneAlpha
impl Clone for DisplayPlaneAlpha
Source§fn clone(&self) -> DisplayPlaneAlpha
fn clone(&self) -> DisplayPlaneAlpha
Returns a duplicate 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 PartialEq for DisplayPlaneAlpha
impl PartialEq for DisplayPlaneAlpha
impl Copy for DisplayPlaneAlpha
impl Eq for DisplayPlaneAlpha
impl StructuralPartialEq for DisplayPlaneAlpha
Auto Trait Implementations§
impl Freeze for DisplayPlaneAlpha
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