pub struct ProxySampler {
pub sampler: Arc<RwLock<dyn Sampler>>,
}Fields§
§sampler: Arc<RwLock<dyn Sampler>>Implementations§
Trait Implementations§
Source§impl Clone for ProxySampler
impl Clone for ProxySampler
Source§fn clone(&self) -> ProxySampler
fn clone(&self) -> ProxySampler
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 Sampler for ProxySampler
impl Sampler for ProxySampler
fn start_pixel(&mut self, p: &Point2i)
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 round_count(&self, n: u32) -> u32
fn get_camera_sample(&mut self, p: &Point2i) -> CameraSample
fn start_next_sample(&mut self) -> bool
fn clone_with_seed(&self, seed: u32) -> Arc<RwLock<dyn Sampler>>
fn set_sample_number(&mut self, sample_num: u32) -> bool
fn get_samples_per_pixel(&self) -> u32
impl Send for ProxySampler
impl Sync for ProxySampler
Auto Trait Implementations§
impl Freeze for ProxySampler
impl RefUnwindSafe for ProxySampler
impl Unpin for ProxySampler
impl UnwindSafe for ProxySampler
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 more