wgpu renderer no longer creates a sampler with every texture (#2198)

This commit is contained in:
Andreas Reich
2022-10-30 15:14:45 +01:00
committed by GitHub
parent f7a15a34f9
commit 53b800502a
3 changed files with 25 additions and 15 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ pub struct TextureMeta {
}
/// How the texture texels are filtered.
#[derive(Copy, Clone, Debug, PartialEq)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub enum TextureFilter {
/// Show the nearest pixel value.