[][src]Struct oidn::filter::RayTracing

pub struct RayTracing<'a, 'b> { /* fields omitted */ }

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]

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]

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]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]