Skip to content

Commit

Permalink
rt(wgpu): take an arc of the source texture
Browse files Browse the repository at this point in the history
  • Loading branch information
chyyran committed Feb 3, 2024
1 parent 71ff517 commit e002ccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions librashader-runtime-wgpu/src/filter_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ impl FilterChainWGPU {
}

pub fn frame<'a>(&mut self,
input: wgpu::Texture,
input: Arc<wgpu::Texture>,
viewport: &Viewport<OutputImage<'a>>,
cmd: &mut wgpu::CommandEncoder,
frame_count: usize,
Expand Down Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion librashader-runtime-wgpu/src/framebuffer.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use wgpu::TextureView;
use librashader_common::Size;
use crate::texture::OwnedImage;

Expand Down

0 comments on commit e002ccb

Please sign in to comment.