summary refs log tree commit diff
path: root/src/demosaic/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/demosaic/mod.rs')
-rw-r--r--src/demosaic/mod.rs14
1 files changed, 7 insertions, 7 deletions
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;