Sample

Trait Sample 

Source
pub trait Sample<T> {
    // Required method
    fn sample(
        &self,
        shutter: &Shutter,
        samples: NonZeroU16,
    ) -> Result<Vec<(T, SampleWeight)>>;
}
Expand description

trait for generating motion blur samples with shutter timing.

The Sample trait generates multiple samples across a Shutter interval for motion blur rendering. Each sample includes the interpolated value and a weight based on the shutter opening at that time.

Required Methods§

Source

fn sample( &self, shutter: &Shutter, samples: NonZeroU16, ) -> Result<Vec<(T, SampleWeight)>>

Generate samples across the shutter interval.

Returns a vector of value-weight pairs for the specified number of samples distributed across the shutter’s time range.

Implementors§