pub enum ColorAlphaMode {
Unspecified,
Opaque,
Premultiplied,
Straight,
}Expand description
What a render sender’s colour alpha means (QarColorAlphaMode), declared
through QarRenderSenderAlphaModeExt. The stream publishes it and a
receiver composites by it.
Variants§
Unspecified
Not declared: a receiver keeps its own default. The sender chains no extension.
Opaque
The alpha channel means nothing; every pixel is fully covered. The
declaration for a B8G8R8X8 colour, if any.
Premultiplied
The colour is premultiplied by the alpha, which is the pixel’s coverage: what drawing over a transparent-black clear with ordinary alpha blending produces.
Straight
The colour is not multiplied by the alpha. The sender premultiplies it
before the frame leaves the application, at one shader pass per frame,
and the stream publishes Self::Premultiplied.
Trait Implementations§
Source§impl Clone for ColorAlphaMode
impl Clone for ColorAlphaMode
impl Copy for ColorAlphaMode
Source§impl Debug for ColorAlphaMode
impl Debug for ColorAlphaMode
Source§impl Default for ColorAlphaMode
impl Default for ColorAlphaMode
impl Eq for ColorAlphaMode
Source§impl Hash for ColorAlphaMode
impl Hash for ColorAlphaMode
Source§impl PartialEq for ColorAlphaMode
impl PartialEq for ColorAlphaMode
impl StructuralPartialEq for ColorAlphaMode
Auto Trait Implementations§
impl Freeze for ColorAlphaMode
impl RefUnwindSafe for ColorAlphaMode
impl Send for ColorAlphaMode
impl Sync for ColorAlphaMode
impl Unpin for ColorAlphaMode
impl UnsafeUnpin for ColorAlphaMode
impl UnwindSafe for ColorAlphaMode
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