pub struct RtLightmapFilter<'a> { /* private fields */ }Expand description
Ray-traced lightmap denoising filter (OIDN “RTLightmap”).
Use for denoising baked lightmaps. Requires OIDN built with OIDN_FILTER_RTLIGHTMAP.
Implementations§
Source§impl<'a> RtLightmapFilter<'a>
impl<'a> RtLightmapFilter<'a>
Sourcepub fn new(device: &'a OidnDevice) -> Result<Self, Error>
pub fn new(device: &'a OidnDevice) -> Result<Self, Error>
Creates a new RTLightmap filter. Returns an error if OIDN was not built with RTLightmap support.
Sourcepub fn set_dimensions(&mut self, width: u32, height: u32) -> &mut Self
pub fn set_dimensions(&mut self, width: u32, height: u32) -> &mut Self
Image dimensions (must be set before execute).
Sourcepub fn set_directional(&mut self, directional: bool) -> &mut Self
pub fn set_directional(&mut self, directional: bool) -> &mut Self
If true, use directional lightmap model; if false, HDR. Default: false.
Sourcepub fn get_bool(&self, name: &str) -> bool
pub fn get_bool(&self, name: &str) -> bool
Gets a boolean filter parameter (e.g. "directional").
Sourcepub unsafe fn set_progress_monitor_raw(
&self,
func: Option<unsafe extern "C" fn(user_ptr: *mut c_void, n: f64) -> bool>,
user_ptr: *mut c_void,
)
pub unsafe fn set_progress_monitor_raw( &self, func: Option<unsafe extern "C" fn(user_ptr: *mut c_void, n: f64) -> bool>, user_ptr: *mut c_void, )
Sets the progress monitor callback. Call with (None, null) to clear.
Trait Implementations§
Source§impl Debug for RtLightmapFilter<'_>
impl Debug for RtLightmapFilter<'_>
Source§impl Drop for RtLightmapFilter<'_>
impl Drop for RtLightmapFilter<'_>
impl Send for RtLightmapFilter<'_>
Auto Trait Implementations§
impl<'a> Freeze for RtLightmapFilter<'a>
impl<'a> RefUnwindSafe for RtLightmapFilter<'a>
impl<'a> !Sync for RtLightmapFilter<'a>
impl<'a> Unpin for RtLightmapFilter<'a>
impl<'a> UnwindSafe for RtLightmapFilter<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more