Struct rs_pbrt::samplers::halton::HaltonSampler
source · pub struct HaltonSampler {
pub samples_per_pixel: i64,
/* private fields */
}
Fields§
§samples_per_pixel: i64
Implementations§
source§impl HaltonSampler
impl HaltonSampler
pub fn new( samples_per_pixel: i64, sample_bounds: &Bounds2i, sample_at_pixel_center: bool ) -> Self
pub fn clone_with_seed(&self, _seed: u64) -> Box<Sampler>
pub fn create(params: &ParamSet, sample_bounds: &Bounds2i) -> Box<Sampler>
pub fn get_index_for_sample(&self, sample_num: u64) -> u64
pub fn sample_dimension(&self, index: u64, dim: i64) -> Float
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
pub fn set_sample_number(&mut self, sample_num: i64) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for HaltonSampler
impl Send for HaltonSampler
impl Sync for HaltonSampler
impl Unpin for HaltonSampler
impl UnwindSafe for HaltonSampler
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