pub struct HlgRenderingParams {
pub peak: Nits,
pub black_nits: f32,
pub system_gamma: f32,
}Expand description
Named parameter struct for HlgRendering::new, preventing swapped black_nits and system_gamma.
Fields§
§peak: NitsTarget/reference display peak luminance in cd/m².
black_nits: f32Display black luminance in cd/m² (0.0..=peak * 0.01).
system_gamma: f32Surround-adjusted HLG system gamma (0.5..=3.0, e.g. 1.2 at 1000 nits / 5 nit surround).
Trait Implementations§
Source§impl Clone for HlgRenderingParams
impl Clone for HlgRenderingParams
Source§fn clone(&self) -> HlgRenderingParams
fn clone(&self) -> HlgRenderingParams
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 HlgRenderingParams
Source§impl Debug for HlgRenderingParams
impl Debug for HlgRenderingParams
Source§impl PartialEq for HlgRenderingParams
impl PartialEq for HlgRenderingParams
impl StructuralPartialEq for HlgRenderingParams
Auto Trait Implementations§
impl Freeze for HlgRenderingParams
impl RefUnwindSafe for HlgRenderingParams
impl Send for HlgRenderingParams
impl Sync for HlgRenderingParams
impl Unpin for HlgRenderingParams
impl UnsafeUnpin for HlgRenderingParams
impl UnwindSafe for HlgRenderingParams
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