pub struct Lens {
pub aperture: f32,
pub focal_depth: f32,
pub max_coc: f32,
}Expand description
A lens: the CPU half of coc() in CAMERA_WGSL, with its inputs made
safe once.
Fields§
§aperture: f32Aperture in pixels, finite and non-negative.
focal_depth: f32The focal plane’s view depth.
max_coc: f32The largest circle of confusion drawn, in pixels — the tier’s cap.
Implementations§
Trait Implementations§
impl Copy for Lens
impl StructuralPartialEq for Lens
Auto Trait Implementations§
impl Freeze for Lens
impl RefUnwindSafe for Lens
impl Send for Lens
impl Sync for Lens
impl Unpin for Lens
impl UnsafeUnpin for Lens
impl UnwindSafe for Lens
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