Struct rs_pbrt::samplers::random::RandomSampler
source · pub struct RandomSampler {
pub samples_per_pixel: i64,
/* private fields */
}
Fields§
§samples_per_pixel: i64
Implementations§
source§impl RandomSampler
impl RandomSampler
pub fn new(samples_per_pixel: 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 reseed(&mut self, seed: u64)
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 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 RandomSampler
impl Send for RandomSampler
impl Sync for RandomSampler
impl Unpin for RandomSampler
impl UnwindSafe for RandomSampler
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