From 67feb5c8abfe2ffb2b7ce87552f218ce274dc70c Mon Sep 17 00:00:00 2001 From: Maxwell Beck Date: Tue, 8 Apr 2025 18:16:28 -0500 Subject: Refactor `Demosaic` trait --- src/demosaic/mod.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/demosaic/mod.rs') diff --git a/src/demosaic/mod.rs b/src/demosaic/mod.rs index e3d5209..d21d1b5 100644 --- a/src/demosaic/mod.rs +++ b/src/demosaic/mod.rs @@ -1,13 +1,13 @@ pub trait Demosaic { - fn new(gpu: &wgpu::Device, queue: &wgpu::Queue) -> Self + fn new(gpu: &wgpu::Device) -> Self where Self: Sized; - fn demoasic( - &self, - gpu: &wgpu::Device, - queue: &wgpu::Queue, - image: &rawloader::RawImage, - ) -> wgpu::Texture; + + fn bind_image(&mut self, gpu: &wgpu::Device, queue: &wgpu::Queue, image: &rawloader::RawImage); + + fn demoasic(&self, gpu: &wgpu::Device, queue: &wgpu::Queue); + + fn get_output(&self) -> &wgpu::Texture; } pub mod lmmse; -- cgit 1.4.1