pub struct SobolSampler {
pub base: BaseGlobalSampler,
/* private fields */
}Fields§
§base: BaseGlobalSamplerImplementations§
Trait Implementations§
Source§impl Clone for SobolSampler
impl Clone for SobolSampler
Source§fn clone(&self) -> SobolSampler
fn clone(&self) -> SobolSampler
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SobolSampler
impl Debug for SobolSampler
Source§impl Default for SobolSampler
impl Default for SobolSampler
Source§fn default() -> SobolSampler
fn default() -> SobolSampler
Returns the “default value” for a type. Read more
Source§impl GlobalSampler for SobolSampler
impl GlobalSampler for SobolSampler
fn get_index_for_sample(&self, sample_num: i64) -> i64
fn sample_dimension(&self, index: i64, dim: u32) -> Float
fn get_base(&mut self) -> &mut BaseGlobalSampler
Source§impl PartialEq for SobolSampler
impl PartialEq for SobolSampler
Source§impl Sampler for SobolSampler
impl Sampler for SobolSampler
fn start_pixel(&mut self, p: &Point2i)
fn start_next_sample(&mut self) -> bool
fn set_sample_number(&mut self, sample_num: u32) -> bool
fn get_1d(&mut self) -> Float
fn get_2d(&mut self) -> Point2f
fn request_1d_array(&mut self, n: u32)
fn request_2d_array(&mut self, n: u32)
fn get_1d_array(&mut self, n: u32) -> Option<Vec<Float>>
fn get_2d_array(&mut self, n: u32) -> Option<Vec<Vector2f>>
fn clone_with_seed(&self, _seed: u32) -> Arc<RwLock<dyn Sampler>>
fn get_samples_per_pixel(&self) -> u32
fn get_camera_sample(&mut self, p: &Point2i) -> CameraSample
fn round_count(&self, n: u32) -> u32
impl StructuralPartialEq for SobolSampler
impl Sync for SobolSampler
Auto Trait Implementations§
impl Freeze for SobolSampler
impl RefUnwindSafe for SobolSampler
impl Send for SobolSampler
impl Unpin for SobolSampler
impl UnwindSafe for SobolSampler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn 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().