diff --git a/librashader-runtime-wgpu/src/filter_chain.rs b/librashader-runtime-wgpu/src/filter_chain.rs index 93812988..43cce563 100644 --- a/librashader-runtime-wgpu/src/filter_chain.rs +++ b/librashader-runtime-wgpu/src/filter_chain.rs @@ -236,7 +236,7 @@ impl FilterChainWGPU { } pub fn frame<'a>(&mut self, - input: wgpu::Texture, + input: Arc, viewport: &Viewport>, cmd: &mut wgpu::CommandEncoder, frame_count: usize, @@ -284,7 +284,7 @@ impl FilterChainWGPU { } let original = InputImage { - image: Arc::new(input), + image: Arc::clone(&input), view: Arc::new(original_image_view), wrap_mode, filter_mode: filter, diff --git a/librashader-runtime-wgpu/src/framebuffer.rs b/librashader-runtime-wgpu/src/framebuffer.rs index dbb49257..2e40e381 100644 --- a/librashader-runtime-wgpu/src/framebuffer.rs +++ b/librashader-runtime-wgpu/src/framebuffer.rs @@ -1,4 +1,3 @@ -use wgpu::TextureView; use librashader_common::Size; use crate::texture::OwnedImage;