[][src]Enum bedrock::CompositeAlpha

#[repr(u32)]
pub enum CompositeAlpha {
    Opaque,
    PreMultiplied,
    PostMultiplied,
    Inherit,
}

Variants

Opaque

The alpha channel, if it exists, of the image is ignored in the compositing process

PreMultiplied

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

PostMultiplied

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

Inherit

The way in which the presentation engine treats the alpha channel in the images is unknown to the Vulkan API. Instead, the application is responsible for setting the composite alpha blending mode using native window system commands

Methods

impl CompositeAlpha[src]

pub fn contains(self, value: u32) -> bool[src]

Does the value contains this bits

Trait Implementations

impl Clone for CompositeAlpha[src]

impl Copy for CompositeAlpha[src]

impl Debug for CompositeAlpha[src]

impl Eq for CompositeAlpha[src]

impl PartialEq<CompositeAlpha> for CompositeAlpha[src]

impl StructuralEq for CompositeAlpha[src]

impl StructuralPartialEq for CompositeAlpha[src]

Auto Trait Implementations

impl RefUnwindSafe for CompositeAlpha

impl Send for CompositeAlpha

impl Sync for CompositeAlpha

impl Unpin for CompositeAlpha

impl UnwindSafe for CompositeAlpha

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.