Enum glitter::texture::TextureMipmapFilter
[−]
[src]
pub enum TextureMipmapFilter { Filter(TextureFilter), MipmapFilter { criterion: TextureFilter, mipmap: TextureFilter, }, }
Represents the different forms of texture filtering when using mipmaps.
Variants
Filter(TextureFilter)
Ignore mipmap values, and texture a pixel using a standard
TextureFilter
.
MipmapFilter
Select the two mipmaps that are closest to the size of pixel
being filled, and sample each one according to criterion
.
Finally, the result will be computed either by taking the
weighted average of each texel, or by selecting the value
from the closer texel, according to mipmap
.
Fields of MipmapFilter
criterion: TextureFilter | The method to use to select the texels from a mipmap. |
mipmap: TextureFilter | The method to use to select the mipmaps. |
Methods
impl TextureMipmapFilter
[src]
Trait Implementations
impl Debug for TextureMipmapFilter
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for TextureMipmapFilter
[src]
fn clone(&self) -> TextureMipmapFilter
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for TextureMipmapFilter
[src]
impl PartialEq for TextureMipmapFilter
[src]
fn eq(&self, __arg_0: &TextureMipmapFilter) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TextureMipmapFilter) -> bool
[src]
This method tests for !=
.
impl Eq for TextureMipmapFilter
[src]
impl From<TextureFilter> for TextureMipmapFilter
[src]
fn from(filter: TextureFilter) -> TextureMipmapFilter
[src]
Performs the conversion.