Enum gltf::texture::MinFilter [−][src]
pub enum MinFilter { Nearest, Linear, NearestMipmapNearest, LinearMipmapNearest, NearestMipmapLinear, LinearMipmapLinear, }
Minification filter.
Variants
Nearest
Corresponds to GL_NEAREST
.
Linear
Corresponds to GL_LINEAR
.
NearestMipmapNearest
Corresponds to GL_NEAREST_MIPMAP_NEAREST
.
LinearMipmapNearest
Corresponds to GL_LINEAR_MIPMAP_NEAREST
.
NearestMipmapLinear
Corresponds to GL_NEAREST_MIPMAP_LINEAR
.
LinearMipmapLinear
Corresponds to GL_LINEAR_MIPMAP_LINEAR
.
Methods
impl MinFilter
[src]
impl MinFilter
pub fn as_gl_enum(&self) -> u32
[src]
pub fn as_gl_enum(&self) -> u32
Returns the corresponding OpenGL enum value.
Trait Implementations
impl Clone for MinFilter
[src]
impl Clone for MinFilter
fn clone(&self) -> MinFilter
[src]
fn clone(&self) -> MinFilter
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for MinFilter
[src]
impl Debug for MinFilter
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for MinFilter
[src]
impl Copy for MinFilter
impl Eq for MinFilter
[src]
impl Eq for MinFilter
impl PartialEq<MinFilter> for MinFilter
[src]
impl PartialEq<MinFilter> for MinFilter
fn eq(&self, other: &MinFilter) -> bool
[src]
fn eq(&self, other: &MinFilter) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl<'de> Deserialize<'de> for MinFilter
[src]
impl<'de> Deserialize<'de> for MinFilter
fn deserialize<__D>(
__deserializer: __D
) -> Result<MinFilter, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<MinFilter, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for MinFilter
[src]
impl Serialize for MinFilter
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more