#[non_exhaustive]pub enum ToneMapCurve {
None,
Reinhard,
Hable,
}Expand description
The curve applied in linear light when compressing HDR into SDR.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Clamp at 1.0.
For pipelines that want the matrix and transfer functions without a subjective curve.
Reinhard
x / (1 + x). Cheap, keeps shadows, rolls highlights off smoothly.
Hable
The Uncharted 2 filmic curve. Holds contrast better, at some mid-tone shift.
Trait Implementations§
Source§impl Clone for ToneMapCurve
impl Clone for ToneMapCurve
impl Copy for ToneMapCurve
Source§impl Debug for ToneMapCurve
impl Debug for ToneMapCurve
Source§impl Default for ToneMapCurve
impl Default for ToneMapCurve
impl Eq for ToneMapCurve
Source§impl PartialEq for ToneMapCurve
impl PartialEq for ToneMapCurve
impl StructuralPartialEq for ToneMapCurve
Auto Trait Implementations§
impl Freeze for ToneMapCurve
impl RefUnwindSafe for ToneMapCurve
impl Send for ToneMapCurve
impl Sync for ToneMapCurve
impl Unpin for ToneMapCurve
impl UnsafeUnpin for ToneMapCurve
impl UnwindSafe for ToneMapCurve
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