rt(mtl): remove unused 'pass lifetime

This commit is contained in:
chyyran 2024-09-20 02:20:51 -04:00
parent 4ba5aefafc
commit 7d0b135710
3 changed files with 3 additions and 3 deletions

View file

@ -82,7 +82,7 @@ pub struct FilterChainMetal {
prev_frame_history_buffer: OwnedTexture, prev_frame_history_buffer: OwnedTexture,
disable_mipmaps: bool, disable_mipmaps: bool,
default_options: FrameOptionsMetal, default_options: FrameOptionsMetal,
draw_last_pass_feedback: bool draw_last_pass_feedback: bool,
} }
impl Debug for FilterChainMetal { impl Debug for FilterChainMetal {

View file

@ -177,7 +177,7 @@ impl MetalGraphicsPipeline {
Ok(()) Ok(())
} }
pub fn begin_rendering<'pass>( pub fn begin_rendering(
&self, &self,
output: &RenderTarget<ProtocolObject<dyn MTLTexture>>, output: &RenderTarget<ProtocolObject<dyn MTLTexture>>,
buffer: &ProtocolObject<dyn MTLCommandBuffer>, buffer: &ProtocolObject<dyn MTLCommandBuffer>,

View file

@ -7,7 +7,7 @@ use objc2::rc::Retained;
use objc2::runtime::ProtocolObject; use objc2::runtime::ProtocolObject;
use objc2_metal::{ use objc2_metal::{
MTLBlitCommandEncoder, MTLCommandBuffer, MTLCommandEncoder, MTLDevice, MTLPixelFormat, MTLBlitCommandEncoder, MTLCommandBuffer, MTLCommandEncoder, MTLDevice, MTLPixelFormat,
MTLStorageMode, MTLTexture, MTLTextureDescriptor, MTLTextureUsage, MTLTexture, MTLTextureDescriptor, MTLTextureUsage,
}; };
pub type MetalTexture = Retained<ProtocolObject<dyn MTLTexture>>; pub type MetalTexture = Retained<ProtocolObject<dyn MTLTexture>>;