pub struct FrameShutter {
pub shutter: Shutter,
pub frame_rate: FrameRate,
pub max_samples: u32,
}Expand description
The shutter of one frame: the project’s, the frame it is measured in, and how many samples a runtime lets it average.
Fields§
§shutter: ShutterThe project’s shutter.
frame_rate: FrameRateThe project’s frame rate; one of its frames is 360 degrees of the shutter.
max_samples: u32Most samples one layer is averaged from: the shutter’s, or fewer where a runtime caps
them. A power of two, at least alpha2_model::MIN_SHUTTER_SAMPLES.
Implementations§
Source§impl FrameShutter
impl FrameShutter
Sourcepub const fn new(shutter: Shutter, frame_rate: FrameRate) -> Self
pub const fn new(shutter: Shutter, frame_rate: FrameRate) -> Self
The project’s shutter with every sample it allows.
Sourcepub fn capped(self, samples: u32) -> Option<Self>
pub fn capped(self, samples: u32) -> Option<Self>
This shutter averaging at most samples samples, rounded down to a power of two; None
when that leaves fewer than alpha2_model::MIN_SHUTTER_SAMPLES, which averages nothing.
Trait Implementations§
Source§impl Clone for FrameShutter
impl Clone for FrameShutter
impl Copy for FrameShutter
Source§impl Debug for FrameShutter
impl Debug for FrameShutter
Source§impl PartialEq for FrameShutter
impl PartialEq for FrameShutter
impl StructuralPartialEq for FrameShutter
Auto Trait Implementations§
impl Forget for FrameShutter
impl Freeze for FrameShutter
impl Move for FrameShutter
impl RefUnwindSafe for FrameShutter
impl Send for FrameShutter
impl Sync for FrameShutter
impl Unpin for FrameShutter
impl UnsafeUnpin for FrameShutter
impl UnwindSafe for FrameShutter
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