#[repr(C)]pub struct QarRenderSenderColorEncodingExt {
pub header: QarStructureHeader,
pub color_encoding: QarColorEncoding,
}Expand description
@brief Declares what the numbers in a render sender’s colour texture mean.
Chain it on QarRenderSenderInit::header.next, in any position beside the graphics extension and QarRenderSenderAlphaModeExt. Without it the colour is read as QAR_COLOR_ENCODING_SRGB. Declare QAR_COLOR_ENCODING_LINEAR when the application renders linear light into the sender’s texture without encoding it: every QAROS device shows the stream as sRGB-encoded, so linear values would look too dark.
Fields§
§header: QarStructureHeaderQAR_STRUCTURE_TYPE_RENDER_SENDER_COLOR_ENCODING_EXT. Set with qar_render_sender_color_encoding_ext_default().
color_encoding: QarColorEncodingThe declared encoding. A value this library does not know is rejected with QAR_STATUS_ARGUMENT_NOT_SUPPORTED.
Trait Implementations§
impl Copy for QarRenderSenderColorEncodingExt
impl StructuralPartialEq for QarRenderSenderColorEncodingExt
Auto Trait Implementations§
impl !Send for QarRenderSenderColorEncodingExt
impl !Sync for QarRenderSenderColorEncodingExt
impl Freeze for QarRenderSenderColorEncodingExt
impl RefUnwindSafe for QarRenderSenderColorEncodingExt
impl Unpin for QarRenderSenderColorEncodingExt
impl UnsafeUnpin for QarRenderSenderColorEncodingExt
impl UnwindSafe for QarRenderSenderColorEncodingExt
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