presets: default to nearest neighbour scaling for presets with unspecified filter
This commit is contained in:
parent
18e1f758cd
commit
6cb2859058
|
@ -73,10 +73,10 @@ pub enum ImageFormat {
|
||||||
#[derive(Copy, Clone, Default, Debug, Eq, PartialEq, Hash)]
|
#[derive(Copy, Clone, Default, Debug, Eq, PartialEq, Hash)]
|
||||||
/// The filtering mode for a texture sampler.
|
/// The filtering mode for a texture sampler.
|
||||||
pub enum FilterMode {
|
pub enum FilterMode {
|
||||||
#[default]
|
|
||||||
/// Linear filtering.
|
/// Linear filtering.
|
||||||
Linear = 0,
|
Linear = 0,
|
||||||
|
|
||||||
|
#[default]
|
||||||
/// Nearest-neighbour (point) filtering.
|
/// Nearest-neighbour (point) filtering.
|
||||||
Nearest,
|
Nearest,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue