Enum SamplerMipmapMode
#[repr(i32)]pub enum SamplerMipmapMode {
MipmapModeBase = 0,
MipmapModeNearest = 1,
MipmapModeLinear = 2,
}Expand description
Legacy version of enum “kanzi.Sampler.MipmapMode”.
Variants§
MipmapModeBase = 0
< When sampling texture, use only base level image, no mipmap images are used/needed
MipmapModeNearest = 1
< When sampling texture, pick one image, the nearest mipmap level, mipmap images are needed
MipmapModeLinear = 2
< When sampling texture, pick two nearest mipmap level images, mipmap images are needed
Implementations§
§impl SamplerMipmapMode
impl SamplerMipmapMode
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> SamplerMipmapMode
Trait Implementations§
§impl Clone for SamplerMipmapMode
impl Clone for SamplerMipmapMode
§fn clone(&self) -> SamplerMipmapMode
fn clone(&self) -> SamplerMipmapMode
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 more§impl Debug for SamplerMipmapMode
impl Debug for SamplerMipmapMode
§impl Display for SamplerMipmapMode
impl Display for SamplerMipmapMode
§impl PartialEq for SamplerMipmapMode
impl PartialEq for SamplerMipmapMode
§impl VariantConstraint for SamplerMipmapMode
impl VariantConstraint for SamplerMipmapMode
§type DataArg<'a> = SamplerMipmapMode
type DataArg<'a> = SamplerMipmapMode
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = SamplerMipmapMode
type RetArg = SamplerMipmapMode
§fn as_arg(&self) -> <SamplerMipmapMode as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <SamplerMipmapMode as VariantConstraint>::DataArg<'_>
impl Copy for SamplerMipmapMode
impl Eq for SamplerMipmapMode
impl PropertyTypeConstraint for SamplerMipmapMode
impl StructuralPartialEq for SamplerMipmapMode
Auto Trait Implementations§
impl Freeze for SamplerMipmapMode
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