Struct rpt::Renderer [−][src]
Builder object for rendering a scene
Fields
scene: &'a Scene
The scene to be rendered
camera: Camera
The camera to use
width: u32
The width of the output image
height: u32
The height of the output image
exposure_value: f64
Exposure value (EV)
filter: Filter
Optional noise-reduction filter
max_bounces: u32
The maximum number of ray bounces
num_samples: u32
Number of random paths traced per pixel
Implementations
impl<'a> Renderer<'a>
[src]
pub fn new(scene: &'a Scene, camera: Camera) -> Self
[src]
Construct a new renderer for a scene
pub fn width(self, width: u32) -> Self
[src]
Set the width of the rendered scene
pub fn height(self, height: u32) -> Self
[src]
Set the height of the rendered scene
pub fn exposure_value(self, exposure_value: f64) -> Self
[src]
Set the exposure value of the rendered scene
pub fn filter(self, filter: Filter) -> Self
[src]
Set the noise reduction filter
pub fn max_bounces(self, max_bounces: u32) -> Self
[src]
Set the maximum number of ray bounces when ray is traced
pub fn num_samples(self, num_samples: u32) -> Self
[src]
Set the number of random paths traced per pixel
pub fn render(&self) -> RgbImage
[src]
Render the scene by path tracing
pub fn iterative_render<F>(&self, callback_interval: u32, callback: F) where
F: FnMut(u32, &Buffer),
[src]
F: FnMut(u32, &Buffer),
Render the scene iteratively, calling a callback after every k samples
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Renderer<'a>
impl<'a> Send for Renderer<'a>
impl<'a> Sync for Renderer<'a>
impl<'a> Unpin for Renderer<'a>
impl<'a> !UnwindSafe for Renderer<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,