#[repr(transparent)]pub struct QarColorEncoding(pub c_int);Expand description
@brief What the numbers in a render sender’s colour texture mean.
Declared through QarRenderSenderColorEncodingExt. Whatever is declared, the stream carries sRGB-encoded colour: a linear colour is encoded by the sender before the frame leaves the application. Values are appended, never reused.
Tuple Fields§
§0: c_intImplementations§
Source§impl QarColorEncoding
impl QarColorEncoding
Sourcepub const QAR_COLOR_ENCODING_SRGB: QarColorEncoding
pub const QAR_COLOR_ENCODING_SRGB: QarColorEncoding
sRGB-encoded, as a display shows it: what a renderer stores in an sRGB render target, or encodes in its last pass. The default; nothing is converted.
Sourcepub const QAR_COLOR_ENCODING_LINEAR: QarColorEncoding
pub const QAR_COLOR_ENCODING_LINEAR: QarColorEncoding
Linear light, as a renderer stores it in a plain UNORM render target without encoding. The sender encodes it, at one GPU pass per frame. 8-bit linear values have already lost precision in the darks, which then band slightly; QAR_PIXEL_FORMAT_R16G16B16A16 keeps them.
Trait Implementations§
Source§impl Clone for QarColorEncoding
impl Clone for QarColorEncoding
impl Copy for QarColorEncoding
Source§impl Debug for QarColorEncoding
impl Debug for QarColorEncoding
impl Eq for QarColorEncoding
Source§impl Hash for QarColorEncoding
impl Hash for QarColorEncoding
Source§impl PartialEq for QarColorEncoding
impl PartialEq for QarColorEncoding
impl StructuralPartialEq for QarColorEncoding
Auto Trait Implementations§
impl Freeze for QarColorEncoding
impl RefUnwindSafe for QarColorEncoding
impl Send for QarColorEncoding
impl Sync for QarColorEncoding
impl Unpin for QarColorEncoding
impl UnsafeUnpin for QarColorEncoding
impl UnwindSafe for QarColorEncoding
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