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§
source§impl Sampler
impl Sampler
pub fn clone_with_seed(&self, seed: u64) -> Box<Sampler>
pub fn start_pixel(&mut self, p: Point2i)
pub fn get_1d(&mut self) -> Float
pub fn get_2d(&mut self) -> Point2f
pub fn get_2d_sample(&self, array_idx: usize, idx: usize) -> Point2f
pub fn get_camera_sample(&mut self, p_raster: Point2i) -> CameraSample
pub fn request_2d_array(&mut self, n: i32)
pub fn round_count(&self, count: i32) -> i32
pub fn get_2d_array(&mut self, n: i32) -> Option<&[Point2f]>
pub fn get_2d_array_idxs(&mut self, n: i32) -> (bool, usize, usize)
pub fn start_next_sample(&mut self) -> bool
pub fn reseed(&mut self, seed: u64)
pub fn get_current_pixel(&self) -> Point2i
pub fn get_current_sample_number(&self) -> i64
pub fn get_samples_per_pixel(&self) -> i64
pub fn set_sample_number(&mut self, sample_num: i64) -> bool
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more