From 8d191d353e3603b4c5eb52c8d38bde40b8be328f Mon Sep 17 00:00:00 2001 From: Xiaochun Tong Date: Sun, 5 Nov 2023 23:01:52 -0500 Subject: [PATCH] update submod --- luisa_compute/src/runtime.rs | 7 ++++++- luisa_compute_sys/LuisaCompute | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/luisa_compute/src/runtime.rs b/luisa_compute/src/runtime.rs index 21c69be..2e7a451 100644 --- a/luisa_compute/src/runtime.rs +++ b/luisa_compute/src/runtime.rs @@ -102,7 +102,7 @@ impl Drop for DeviceHandle { pub mod extension { use super::*; use api::denoiser_ext::{Feature, Image}; - pub use api::denoiser_ext::{ImageColorSpace, ImageFormat, PrefilterMode}; + pub use api::denoiser_ext::{ImageColorSpace, ImageFormat, PrefilterMode, FilterQuality}; pub struct DenoiserInput { inner: api::denoiser_ext::DenoiserInput, inputs: Vec, @@ -121,6 +121,7 @@ pub mod extension { features: std::ptr::null_mut(), features_count: 0, prefilter_mode: PrefilterMode::None, + filter_quality: FilterQuality::Default, noisy_features: false, width, height, @@ -198,6 +199,10 @@ pub mod extension { self.inner.prefilter_mode = mode; self } + pub fn filter_quality(&mut self, quality: FilterQuality) -> &mut Self { + self.inner.filter_quality = quality; + self + } /// set to false **only** if feature images are **noise-free**. pub fn noisy_features(&mut self, noisy_features: bool) -> &mut Self { self.inner.noisy_features = noisy_features; diff --git a/luisa_compute_sys/LuisaCompute b/luisa_compute_sys/LuisaCompute index af2d53e..a3c1f7b 160000 --- a/luisa_compute_sys/LuisaCompute +++ b/luisa_compute_sys/LuisaCompute @@ -1 +1 @@ -Subproject commit af2d53e30b4dcdd4a6a033163a86c5d0d6ae6e0c +Subproject commit a3c1f7b23860b82d72f2ae02587016ec8167d3d5