diff options
author | Maxwell Beck <max@rastertail.net> | 2025-04-08 18:16:28 -0500 |
---|---|---|
committer | Maxwell Beck <max@rastertail.net> | 2025-04-08 18:16:28 -0500 |
commit | 67feb5c8abfe2ffb2b7ce87552f218ce274dc70c (patch) | |
tree | 4e3e1a4952d4b00a2f8e8f2f3816bebdcbe6b814 /src/demosaic/mod.rs | |
parent | 698d8fb1ddcf2aefd780c672b6f681ee0c5fa1f2 (diff) |
Diffstat (limited to 'src/demosaic/mod.rs')
-rw-r--r-- | src/demosaic/mod.rs | 14 |
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; |