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

pub trait Sampler: SamplerClone {
    fn start_pixel(&mut self, p: &Point2i);
fn get_1d(&mut self) -> Float;
fn get_2d(&mut self) -> Point2f;
fn request_2d_array(&mut self, n: i32);
fn round_count(&self, count: i32) -> i32;
fn get_2d_array(&mut self, n: i32) -> Vec<Point2f>;
fn start_next_sample(&mut self) -> bool;
fn reseed(&mut self, seed: u64);
fn get_current_pixel(&self) -> Point2i;
fn get_current_sample_number(&self) -> i64;
fn get_samples_per_pixel(&self) -> i64; fn get_camera_sample(&mut self, p_raster: &Point2i) -> CameraSample { ... } }

Required methods

fn start_pixel(&mut self, p: &Point2i)

fn get_1d(&mut self) -> Float

fn get_2d(&mut self) -> Point2f

fn request_2d_array(&mut self, n: i32)

fn round_count(&self, count: i32) -> i32

fn get_2d_array(&mut self, n: i32) -> Vec<Point2f>

fn start_next_sample(&mut self) -> bool

fn reseed(&mut self, seed: u64)

fn get_current_pixel(&self) -> Point2i

fn get_current_sample_number(&self) -> i64

fn get_samples_per_pixel(&self) -> i64

Loading content...

Provided methods

fn get_camera_sample(&mut self, p_raster: &Point2i) -> CameraSample

Loading content...

Implementors

impl Sampler for MLTSampler[src]

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

impl Sampler for HaltonSampler[src]

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

impl Sampler for RandomSampler[src]

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

impl Sampler for SobolSampler[src]

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

impl Sampler for ZeroTwoSequenceSampler[src]

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

Loading content...