pub enum ColorEncoding {
Srgb,
Linear,
}Expand description
What the numbers in a render sender’s colour texture mean
(QarColorEncoding), declared through QarRenderSenderColorEncodingExt.
Whatever is declared, the stream carries sRGB-encoded colour.
Variants§
Srgb
sRGB-encoded, as a display shows it; nothing is converted. The sender chains no extension.
Linear
Linear light, as stored in a plain UNORM render target. The sender
encodes it at one GPU pass per frame; 8-bit linear colour bands
slightly in the darks, which PixelFormat::R16G16B16A16 avoids.
Trait Implementations§
Source§impl Clone for ColorEncoding
impl Clone for ColorEncoding
impl Copy for ColorEncoding
Source§impl Debug for ColorEncoding
impl Debug for ColorEncoding
Source§impl Default for ColorEncoding
impl Default for ColorEncoding
impl Eq for ColorEncoding
Source§impl Hash for ColorEncoding
impl Hash for ColorEncoding
Source§impl PartialEq for ColorEncoding
impl PartialEq for ColorEncoding
impl StructuralPartialEq for ColorEncoding
Auto Trait Implementations§
impl Freeze for ColorEncoding
impl RefUnwindSafe for ColorEncoding
impl Send for ColorEncoding
impl Sync for ColorEncoding
impl Unpin for ColorEncoding
impl UnsafeUnpin for ColorEncoding
impl UnwindSafe for ColorEncoding
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