[][src]Enum pbrt::core::sampler::Sampler

pub enum Sampler {
    Halton(HaltonSampler),
    MaxMinDist(MaxMinDistSampler),
    MLT(MLTSampler),
    Random(RandomSampler),
    Sobol(SobolSampler),
    Stratified(StratifiedSampler),
    ZeroTwoSequence(ZeroTwoSequenceSampler),
}

Variants

Halton(HaltonSampler)
MaxMinDist(MaxMinDistSampler)
MLT(MLTSampler)
Random(RandomSampler)
Sobol(SobolSampler)
Stratified(StratifiedSampler)
ZeroTwoSequence(ZeroTwoSequenceSampler)

Implementations

impl Sampler[src]

pub fn clone_with_seed(&self, seed: u64) -> Box<Sampler>[src]

pub fn start_pixel(&mut self, p: Point2i)[src]

pub fn get_1d(&mut self) -> Float[src]

pub fn get_2d(&mut self) -> Point2f[src]

pub fn get_2d_sample(&self, array_idx: usize, idx: usize) -> Point2f[src]

pub fn get_camera_sample(&mut self, p_raster: Point2i) -> CameraSample[src]

pub fn request_2d_array(&mut self, n: i32)[src]

pub fn round_count(&self, count: i32) -> i32[src]

pub fn get_2d_array(&mut self, n: i32) -> Option<&[Point2f]>[src]

pub fn get_2d_array_idxs(&mut self, n: i32) -> (bool, usize, usize)[src]

pub fn start_next_sample(&mut self) -> bool[src]

pub fn reseed(&mut self, seed: u64)[src]

pub fn get_current_pixel(&self) -> Point2i[src]

pub fn get_current_sample_number(&self) -> i64[src]

pub fn get_samples_per_pixel(&self) -> i64[src]

pub fn set_sample_number(&mut self, sample_num: i64) -> bool[src]

Auto Trait Implementations

impl RefUnwindSafe for Sampler

impl Send for Sampler

impl Sync for Sampler

impl Unpin for Sampler

impl UnwindSafe for Sampler

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.