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: 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§
Source§impl Clone for ImageDescriptorFlags
impl Clone for ImageDescriptorFlags
Source§fn clone(&self) -> ImageDescriptorFlags
fn clone(&self) -> ImageDescriptorFlags
Returns a copy 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)