#[repr(C)]pub struct ImageDescriptorFlags {
pub is_opaque: bool,
pub allow_mipmaps: bool,
}Expand description
Various flags that are part of an image descriptor.
Fields§
§is_opaque: boolWhether this image is opaque, or has an alpha channel. Avoiding blending for opaque surfaces is an important optimization.
allow_mipmaps: boolWhether 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§
Source§impl Clone for ImageDescriptorFlags
impl Clone for ImageDescriptorFlags
Source§fn clone(&self) -> ImageDescriptorFlags
fn clone(&self) -> ImageDescriptorFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageDescriptorFlags
impl Debug for ImageDescriptorFlags
Source§impl Hash for ImageDescriptorFlags
impl Hash for ImageDescriptorFlags
Source§impl Ord for ImageDescriptorFlags
impl Ord for ImageDescriptorFlags
Source§fn cmp(&self, other: &ImageDescriptorFlags) -> Ordering
fn cmp(&self, other: &ImageDescriptorFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ImageDescriptorFlags
impl PartialEq for ImageDescriptorFlags
Source§impl PartialOrd for ImageDescriptorFlags
impl PartialOrd for ImageDescriptorFlags
impl Copy for ImageDescriptorFlags
impl Eq for ImageDescriptorFlags
impl StructuralPartialEq for ImageDescriptorFlags
Auto Trait Implementations§
impl Freeze for ImageDescriptorFlags
impl RefUnwindSafe for ImageDescriptorFlags
impl Send for ImageDescriptorFlags
impl Sync for ImageDescriptorFlags
impl Unpin for ImageDescriptorFlags
impl UnwindSafe for ImageDescriptorFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more