[][src]Struct pbrt::samplers::stratified::StratifiedSampler

pub struct StratifiedSampler {
    pub samples_per_pixel: i64,
    // some fields omitted
}

Fields

samples_per_pixel: i64

Implementations

impl StratifiedSampler[src]

pub fn new(
    x_pixel_samples: i32,
    y_pixel_samples: i32,
    jitter_samples: bool,
    n_sampled_dimensions: i64
) -> Self
[src]

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

pub fn create(params: &ParamSet) -> 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 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]

Auto Trait Implementations

impl RefUnwindSafe for StratifiedSampler

impl Send for StratifiedSampler

impl Sync for StratifiedSampler

impl Unpin for StratifiedSampler

impl UnwindSafe for StratifiedSampler

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.