pub struct ToneMappingConfigBuilder { /* private fields */ }Expand description
Builder for ToneMappingConfig.
Implementations§
Source§impl ToneMappingConfigBuilder
impl ToneMappingConfigBuilder
Sourcepub fn operator(self, op: ToneMapOperator) -> Self
pub fn operator(self, op: ToneMapOperator) -> Self
Set tone-mapping operator.
Sourcepub fn peak_brightness(self, nits: f32) -> Self
pub fn peak_brightness(self, nits: f32) -> Self
Set peak brightness of the HDR source in nits.
Sourcepub fn white_point(self, nits: f32) -> Self
pub fn white_point(self, nits: f32) -> Self
Set the white-point in nits.
Sourcepub fn saturation_correction(self, s: f32) -> Self
pub fn saturation_correction(self, s: f32) -> Self
Set saturation correction (1.0 = neutral).
Sourcepub fn knee_start(self, k: f32) -> Self
pub fn knee_start(self, k: f32) -> Self
Enable soft-knee blending starting at this fraction of peak brightness.
For example, 0.7 enables the knee above 70 % of peak.
Sourcepub fn build(self) -> ToneMappingConfig
pub fn build(self) -> ToneMappingConfig
Finalise and return the configuration.
Trait Implementations§
Source§impl Default for ToneMappingConfigBuilder
impl Default for ToneMappingConfigBuilder
Source§fn default() -> ToneMappingConfigBuilder
fn default() -> ToneMappingConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ToneMappingConfigBuilder
impl RefUnwindSafe for ToneMappingConfigBuilder
impl Send for ToneMappingConfigBuilder
impl Sync for ToneMappingConfigBuilder
impl Unpin for ToneMappingConfigBuilder
impl UnsafeUnpin for ToneMappingConfigBuilder
impl UnwindSafe for ToneMappingConfigBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more