Struct rs_pbrt::samplers::stratified::StratifiedSampler
source · [−]pub struct StratifiedSampler {
pub samples_per_pixel: i64,
/* private fields */
}
Fields
samples_per_pixel: i64
Implementations
sourceimpl StratifiedSampler
impl StratifiedSampler
pub fn new(
x_pixel_samples: i32,
y_pixel_samples: i32,
jitter_samples: bool,
n_sampled_dimensions: i64
) -> Self
pub fn clone_with_seed(&self, seed: u64) -> Box<Sampler>
pub fn create(params: &ParamSet) -> 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 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more