Enum vulkano::sampler::MipmapMode
source · #[repr(u32)]
pub enum MipmapMode {
Nearest,
Linear,
}
Expand description
Describes which mipmap from the source to use.
Variants
Nearest
Use the mipmap whose dimensions are the nearest to the dimensions of the destination.
Linear
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
sourceimpl Clone for MipmapMode
impl Clone for MipmapMode
sourcefn clone(&self) -> MipmapMode
fn clone(&self) -> MipmapMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MipmapMode
impl Debug for MipmapMode
sourceimpl Hash for MipmapMode
impl Hash for MipmapMode
sourceimpl PartialEq<MipmapMode> for MipmapMode
impl PartialEq<MipmapMode> for MipmapMode
sourcefn eq(&self, other: &MipmapMode) -> bool
fn eq(&self, other: &MipmapMode) -> bool
impl Copy for MipmapMode
impl Eq for MipmapMode
impl StructuralEq for MipmapMode
impl StructuralPartialEq for MipmapMode
Auto Trait Implementations
impl RefUnwindSafe for MipmapMode
impl Send for MipmapMode
impl Sync for MipmapMode
impl Unpin for MipmapMode
impl UnwindSafe for MipmapMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.