Struct rs_pbrt::samplers::zerotwosequence::ZeroTwoSequenceSampler
source · [−]pub struct ZeroTwoSequenceSampler {
pub samples_per_pixel: i64,
pub n_sampled_dimensions: i64,
/* private fields */
}
Fields
samples_per_pixel: i64
n_sampled_dimensions: i64
Implementations
sourceimpl ZeroTwoSequenceSampler
impl ZeroTwoSequenceSampler
pub fn new(samples_per_pixel: i64, 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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ZeroTwoSequenceSampler
impl Send for ZeroTwoSequenceSampler
impl Sync for ZeroTwoSequenceSampler
impl Unpin for ZeroTwoSequenceSampler
impl UnwindSafe for ZeroTwoSequenceSampler
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
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.