[−][src]Struct oidn::filter::RayTracing
A generic ray tracing denoising filter for denoising images produces with Monte Carlo ray tracing methods such as path tracing.
Methods
impl<'a, 'b> RayTracing<'a, 'b>
[src]
pub fn new(device: &'a Device) -> RayTracing<'a, 'b>
[src]
pub fn set_hdr(&mut self, hdr: bool) -> &mut RayTracing<'a, 'b>
[src]
pub fn set_srgb(&mut self, srgb: bool) -> &mut RayTracing<'a, 'b>
[src]
pub fn set_img_dims(
&mut self,
width: usize,
height: usize
) -> &mut RayTracing<'a, 'b>
[src]
&mut self,
width: usize,
height: usize
) -> &mut RayTracing<'a, 'b>
pub fn set_albedo(&mut self, albedo: &'b [f32]) -> &mut RayTracing<'a, 'b>
[src]
pub fn set_normal(&mut self, normal: &'b [f32]) -> &mut RayTracing<'a, 'b>
[src]
pub fn execute(
&mut self,
color: &[f32],
output: &mut [f32]
) -> Result<(), FilterError>
[src]
&mut self,
color: &[f32],
output: &mut [f32]
) -> Result<(), FilterError>
Trait Implementations
impl<'a, 'b> Send for RayTracing<'a, 'b>
[src]
impl<'a, 'b> Drop for RayTracing<'a, 'b>
[src]
Auto Trait Implementations
impl<'a, 'b> !Sync for RayTracing<'a, 'b>
impl<'a, 'b> Unpin for RayTracing<'a, 'b>
impl<'a, 'b> UnwindSafe for RayTracing<'a, 'b>
impl<'a, 'b> RefUnwindSafe for RayTracing<'a, 'b>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,