#[non_exhaustive]pub enum PipelineFilter {
Nearest,
Linear,
NearestMipmapNearest,
LinearMipmapNearest,
NearestMipmapLinear,
LinearMipmapLinear,
}
Expand description
Texture filtering is used whenever the current pixel maps either to more than one texture element (texel) or less than one. These filter enums correspond to different strategies used to come up with a pixel color, by possibly referring to multiple neighbouring texels and taking a weighted average or simply using the nearest texel.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Nearest
Measuring in manhatten distance from the, current pixel center, use the nearest texture texel
Linear
Use the weighted average of the 4 texels nearest the current pixel center
NearestMipmapNearest
Select the mimap level whose
texel size most closely matches the current pixel, and use the
PipelineFilter::Nearest
criterion
LinearMipmapNearest
Select the mimap level whose
texel size most closely matches the current pixel, and use the
PipelineFilter::Linear
criterion
NearestMipmapLinear
Select the two mimap levels
whose texel size most closely matches the current pixel, use
the PipelineFilter::Nearest
criterion on each one and take
their weighted average
LinearMipmapLinear
Select the two mimap levels
whose texel size most closely matches the current pixel, use
the PipelineFilter::Linear
criterion on each one and take
their weighted average
Trait Implementations§
Source§impl Clone for PipelineFilter
impl Clone for PipelineFilter
Source§fn clone(&self) -> PipelineFilter
fn clone(&self) -> PipelineFilter
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more