[−][src]Struct azul_core::app_resources::ImageDescriptorFlags
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]
fn clone(&self) -> ImageDescriptorFlags
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ImageDescriptorFlags
[src]
impl Debug for ImageDescriptorFlags
[src]
impl Eq for ImageDescriptorFlags
[src]
impl Hash for ImageDescriptorFlags
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for ImageDescriptorFlags
[src]
fn cmp(&self, other: &ImageDescriptorFlags) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ImageDescriptorFlags> for ImageDescriptorFlags
[src]
fn eq(&self, other: &ImageDescriptorFlags) -> bool
[src]
fn ne(&self, other: &ImageDescriptorFlags) -> bool
[src]
impl PartialOrd<ImageDescriptorFlags> for ImageDescriptorFlags
[src]
fn partial_cmp(&self, other: &ImageDescriptorFlags) -> Option<Ordering>
[src]
fn lt(&self, other: &ImageDescriptorFlags) -> bool
[src]
fn le(&self, other: &ImageDescriptorFlags) -> bool
[src]
fn gt(&self, other: &ImageDescriptorFlags) -> bool
[src]
fn ge(&self, other: &ImageDescriptorFlags) -> bool
[src]
impl StructuralEq for ImageDescriptorFlags
[src]
impl StructuralPartialEq for ImageDescriptorFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageDescriptorFlags
impl Send for ImageDescriptorFlags
impl Sync for ImageDescriptorFlags
impl Unpin for ImageDescriptorFlags
impl UnwindSafe for ImageDescriptorFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,