Struct comfy_wgpu::egui::epaint::textures::TextureOptions
pub struct TextureOptions {
pub magnification: TextureFilter,
pub minification: TextureFilter,
}Expand description
How the texture texels are filtered.
Fields§
§magnification: TextureFilterHow to filter when magnifying (when texels are larger than pixels).
minification: TextureFilterHow to filter when minifying (when texels are smaller than pixels).
Implementations§
§impl TextureOptions
impl TextureOptions
pub const LINEAR: TextureOptions = _
pub const LINEAR: TextureOptions = _
Linear magnification and minification.
pub const NEAREST: TextureOptions = _
pub const NEAREST: TextureOptions = _
Nearest magnification and minification.
Trait Implementations§
§impl Clone for TextureOptions
impl Clone for TextureOptions
§fn clone(&self) -> TextureOptions
fn clone(&self) -> TextureOptions
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 more§impl Debug for TextureOptions
impl Debug for TextureOptions
§impl Default for TextureOptions
impl Default for TextureOptions
§fn default() -> TextureOptions
fn default() -> TextureOptions
The default is linear for both magnification and minification.
§impl Hash for TextureOptions
impl Hash for TextureOptions
§impl PartialEq<TextureOptions> for TextureOptions
impl PartialEq<TextureOptions> for TextureOptions
§fn eq(&self, other: &TextureOptions) -> bool
fn eq(&self, other: &TextureOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for TextureOptions
impl Eq for TextureOptions
impl StructuralEq for TextureOptions
impl StructuralPartialEq for TextureOptions
Auto Trait Implementations§
impl RefUnwindSafe for TextureOptions
impl Send for TextureOptions
impl Sync for TextureOptions
impl Unpin for TextureOptions
impl UnwindSafe for TextureOptions
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.