Enum vulkano::image::sampler::SamplerMipmapMode
source · #[non_exhaustive]#[repr(i32)]pub enum SamplerMipmapMode {
Nearest = 0,
Linear = 1,
}
Expand description
Describes which mipmap from the source to use.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Nearest = 0
Use the mipmap whose dimensions are the nearest to the dimensions of the destination.
Linear = 1
Take the mipmap whose dimensions are no greater than that of the destination together with the next higher level mipmap, calculate the value for both, and interpolate them.
Trait Implementations§
source§impl Clone for SamplerMipmapMode
impl Clone for SamplerMipmapMode
source§fn clone(&self) -> SamplerMipmapMode
fn clone(&self) -> SamplerMipmapMode
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 SamplerMipmapMode
impl Debug for SamplerMipmapMode
source§impl From<SamplerMipmapMode> for SamplerMipmapMode
impl From<SamplerMipmapMode> for SamplerMipmapMode
source§fn from(val: SamplerMipmapMode) -> Self
fn from(val: SamplerMipmapMode) -> Self
Converts to this type from the input type.
source§impl Hash for SamplerMipmapMode
impl Hash for SamplerMipmapMode
source§impl PartialEq for SamplerMipmapMode
impl PartialEq for SamplerMipmapMode
source§fn eq(&self, other: &SamplerMipmapMode) -> bool
fn eq(&self, other: &SamplerMipmapMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<SamplerMipmapMode> for SamplerMipmapMode
impl TryFrom<SamplerMipmapMode> for SamplerMipmapMode
impl Copy for SamplerMipmapMode
impl Eq for SamplerMipmapMode
impl StructuralEq for SamplerMipmapMode
impl StructuralPartialEq for SamplerMipmapMode
Auto Trait Implementations§
impl RefUnwindSafe for SamplerMipmapMode
impl Send for SamplerMipmapMode
impl Sync for SamplerMipmapMode
impl Unpin for SamplerMipmapMode
impl UnwindSafe for SamplerMipmapMode
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