From 7d0b135710238747de4e4c303aa678ec51d0b6c4 Mon Sep 17 00:00:00 2001 From: chyyran Date: Fri, 20 Sep 2024 02:20:51 -0400 Subject: [PATCH] rt(mtl): remove unused 'pass lifetime --- librashader-runtime-mtl/src/filter_chain.rs | 2 +- librashader-runtime-mtl/src/graphics_pipeline.rs | 2 +- librashader-runtime-mtl/src/texture.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/librashader-runtime-mtl/src/filter_chain.rs b/librashader-runtime-mtl/src/filter_chain.rs index 7803008..e23624d 100644 --- a/librashader-runtime-mtl/src/filter_chain.rs +++ b/librashader-runtime-mtl/src/filter_chain.rs @@ -82,7 +82,7 @@ pub struct FilterChainMetal { prev_frame_history_buffer: OwnedTexture, disable_mipmaps: bool, default_options: FrameOptionsMetal, - draw_last_pass_feedback: bool + draw_last_pass_feedback: bool, } impl Debug for FilterChainMetal { diff --git a/librashader-runtime-mtl/src/graphics_pipeline.rs b/librashader-runtime-mtl/src/graphics_pipeline.rs index bf560dd..855a428 100644 --- a/librashader-runtime-mtl/src/graphics_pipeline.rs +++ b/librashader-runtime-mtl/src/graphics_pipeline.rs @@ -177,7 +177,7 @@ impl MetalGraphicsPipeline { Ok(()) } - pub fn begin_rendering<'pass>( + pub fn begin_rendering( &self, output: &RenderTarget>, buffer: &ProtocolObject, diff --git a/librashader-runtime-mtl/src/texture.rs b/librashader-runtime-mtl/src/texture.rs index ad4d853..da49fb3 100644 --- a/librashader-runtime-mtl/src/texture.rs +++ b/librashader-runtime-mtl/src/texture.rs @@ -7,7 +7,7 @@ use objc2::rc::Retained; use objc2::runtime::ProtocolObject; use objc2_metal::{ MTLBlitCommandEncoder, MTLCommandBuffer, MTLCommandEncoder, MTLDevice, MTLPixelFormat, - MTLStorageMode, MTLTexture, MTLTextureDescriptor, MTLTextureUsage, + MTLTexture, MTLTextureDescriptor, MTLTextureUsage, }; pub type MetalTexture = Retained>;