[][src]Struct azul_core::app_resources::ImageDescriptorFlags

pub struct ImageDescriptorFlags {
    pub is_opaque: bool,
    pub allow_mipmaps: bool,
}

Various flags that are part of an image descriptor.

Fields

is_opaque: bool

Whether this image is opaque, or has an alpha channel. Avoiding blending for opaque surfaces is an important optimization.

allow_mipmaps: bool

Whether to allow the driver to automatically generate mipmaps. If images are already downscaled appropriately, mipmap generation can be wasted work, and cause performance problems on some cards/drivers.

See https://github.com/servo/webrender/pull/2555/

Trait Implementations

impl Clone for ImageDescriptorFlags[src]

impl Copy for ImageDescriptorFlags[src]

impl Debug for ImageDescriptorFlags[src]

impl Eq for ImageDescriptorFlags[src]

impl Hash for ImageDescriptorFlags[src]

impl Ord for ImageDescriptorFlags[src]

impl PartialEq<ImageDescriptorFlags> for ImageDescriptorFlags[src]

impl PartialOrd<ImageDescriptorFlags> for ImageDescriptorFlags[src]

impl StructuralEq for ImageDescriptorFlags[src]

impl StructuralPartialEq for ImageDescriptorFlags[src]

Auto Trait Implementations

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.