#[repr(C)]pub struct AutoExposureParams {
pub lum_log2_min: f32,
pub lum_log2_range: f32,
pub lum_to_bin_scale: f32,
pub _pad: f32,
}Expand description
Input to the auto-exposure histogram kernels: the three luminance-mapping
scalars then a pad rounding to 16 bytes. Matches AutoExposureParams in
shaders/auto_exposure.slang.
Fields§
§lum_log2_min: f32Lowest log2(luminance) the histogram covers.
lum_log2_range: f32Width of the log2(luminance) span the histogram covers (max - min).
lum_to_bin_scale: f32HISTOGRAM_BINS / lum_log2_range. The build kernel multiplies the
centred log-luminance by this to derive a bin index.
_pad: f32Padding so the field layout matches the shader-side struct.
Trait Implementations§
Source§impl Clone for AutoExposureParams
impl Clone for AutoExposureParams
Source§fn clone(&self) -> AutoExposureParams
fn clone(&self) -> AutoExposureParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AutoExposureParams
impl NoUninit for AutoExposureParams
Auto Trait Implementations§
impl Freeze for AutoExposureParams
impl RefUnwindSafe for AutoExposureParams
impl Send for AutoExposureParams
impl Sync for AutoExposureParams
impl Unpin for AutoExposureParams
impl UnsafeUnpin for AutoExposureParams
impl UnwindSafe for AutoExposureParams
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