pub enum TextureFilterMode {
Nearest,
Linear,
NearestMipmapNearest,
LinearMipmapNearest,
NearestMipmapLinear,
LinearMipmapLinear,
}Expand description
Texture sampling filter mode aligned with glTF 2.0 / WebGL constants.
Variants§
Nearest
Nearest-texel sampling (9728).
Linear
Bilinear texel interpolation (9729).
NearestMipmapNearest
Nearest texel within nearest mip level (9984).
LinearMipmapNearest
Bilinear texels within nearest mip level (9985).
NearestMipmapLinear
Nearest texel blended between adjacent mip levels (9986).
LinearMipmapLinear
Trilinear filtering across adjacent mip levels (9987).
Implementations§
Source§impl TextureFilterMode
glTF 2.0 WebGL constant mapping helpers for TextureFilterMode.
impl TextureFilterMode
glTF 2.0 WebGL constant mapping helpers for TextureFilterMode.
Sourcepub const fn from_gltf_code(code: u32) -> TextureFilterMode
pub const fn from_gltf_code(code: u32) -> TextureFilterMode
Trait Implementations§
Source§impl Clone for TextureFilterMode
impl Clone for TextureFilterMode
Source§fn clone(&self) -> TextureFilterMode
fn clone(&self) -> TextureFilterMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextureFilterMode
Source§impl Debug for TextureFilterMode
impl Debug for TextureFilterMode
Source§impl Default for TextureFilterMode
impl Default for TextureFilterMode
Source§fn default() -> TextureFilterMode
fn default() -> TextureFilterMode
Returns the “default value” for a type. Read more
impl Eq for TextureFilterMode
Source§impl Hash for TextureFilterMode
impl Hash for TextureFilterMode
Source§impl PartialEq for TextureFilterMode
impl PartialEq for TextureFilterMode
impl StructuralPartialEq for TextureFilterMode
Auto Trait Implementations§
impl Forget for TextureFilterMode
impl Freeze for TextureFilterMode
impl Move for TextureFilterMode
impl RefUnwindSafe for TextureFilterMode
impl Send for TextureFilterMode
impl Sync for TextureFilterMode
impl Unpin for TextureFilterMode
impl UnsafeUnpin for TextureFilterMode
impl UnwindSafe for TextureFilterMode
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