pub enum DisplayPlaneAlpha {
Opaque,
Global(f32),
PerPixel,
PerPixelPremultiplied,
}
Expand description
Alpha mode used in display surface creation
Variants§
Opaque
Specifies that the source image will be treated as opaque
Global(f32)
Specifies that the provided global alpha value will be applied to all pixels in the source image.
PerPixel
Specifies that 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.
PerPixelPremultiplied
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 Debug for DisplayPlaneAlpha
impl Debug for DisplayPlaneAlpha
Source§impl Default for DisplayPlaneAlpha
impl Default for DisplayPlaneAlpha
Source§impl From<DisplayPlaneAlpha> for DisplayPlaneAlphaFlags
impl From<DisplayPlaneAlpha> for DisplayPlaneAlphaFlags
Source§fn from(display_plane_alpha: DisplayPlaneAlpha) -> Self
fn from(display_plane_alpha: DisplayPlaneAlpha) -> Self
Converts to this type from the input type.
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