pub enum HdrEncoding {
ExtendedLinear,
Pq,
}Expand description
HDR encoding the composite shader emits on the EDR path. Drives both
the swapchain colour-space choice (CAMetalLayer on Metal,
SetColorSpace1 on DirectX) and the shader’s per-pixel encode.
Variants§
ExtendedLinear
Pass linear extended-range values through. Swapchain colour space is
kCGColorSpaceExtendedLinearDisplayP3; the OS compositor handles the
final encode to whatever the panel needs. 1.0 = SDR reference white;
values above drive the panel’s headroom.
Pq
PQ-encode (SMPTE ST 2084) the linear scene before write. Swapchain
colour space is kCGColorSpaceDisplayP3_PQ; the panel decodes via
the PQ EOTF. Suitable for HDR10 / HDR1000 monitors that prefer
PQ-encoded values directly. SDR reference white maps to 203 nits per
ITU-R BT.2408.
Trait Implementations§
Source§impl Clone for HdrEncoding
impl Clone for HdrEncoding
Source§fn clone(&self) -> HdrEncoding
fn clone(&self) -> HdrEncoding
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 HdrEncoding
Source§impl Debug for HdrEncoding
impl Debug for HdrEncoding
impl Eq for HdrEncoding
Source§impl PartialEq for HdrEncoding
impl PartialEq for HdrEncoding
impl StructuralPartialEq for HdrEncoding
Auto Trait Implementations§
impl Freeze for HdrEncoding
impl RefUnwindSafe for HdrEncoding
impl Send for HdrEncoding
impl Sync for HdrEncoding
impl Unpin for HdrEncoding
impl UnsafeUnpin for HdrEncoding
impl UnwindSafe for HdrEncoding
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.