From 06d5f6d80a75812263da129b1972265182778dcc Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Sun, 11 Feb 2024 23:41:59 -0800 Subject: [PATCH] metal: fix from_metal_texture API --- blade-graphics/src/metal/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blade-graphics/src/metal/mod.rs b/blade-graphics/src/metal/mod.rs index 9fc721de..282be051 100644 --- a/blade-graphics/src/metal/mod.rs +++ b/blade-graphics/src/metal/mod.rs @@ -122,7 +122,7 @@ impl TextureView { /// Create a TextureView from a raw Metal Texture. /// Does not keep a reference, need not being destoryed. - pub fn from_metal_texture(&self, raw: &metal::TextureRef) -> Self { + pub fn from_metal_texture(raw: &metal::TextureRef) -> Self { Self { raw: raw.as_ptr() } } }