#[repr(transparent)]pub struct QarColorAlphaMode(pub c_int);Expand description
@brief What a stream’s colour alpha means.
Declared by a render sender through QarRenderSenderAlphaModeExt and published with the stream, so a receiver composites by it instead of guessing. Values are appended, never reused.
Tuple Fields§
§0: c_intImplementations§
Source§impl QarColorAlphaMode
impl QarColorAlphaMode
Sourcepub const QAR_COLOR_ALPHA_MODE_UNSPECIFIED: QarColorAlphaMode
pub const QAR_COLOR_ALPHA_MODE_UNSPECIFIED: QarColorAlphaMode
Not declared: a receiver keeps its own default. What a render sender without QarRenderSenderAlphaModeExt declares.
Sourcepub const QAR_COLOR_ALPHA_MODE_OPAQUE: QarColorAlphaMode
pub const QAR_COLOR_ALPHA_MODE_OPAQUE: QarColorAlphaMode
The alpha channel means nothing; every pixel is fully covered.
Sourcepub const QAR_COLOR_ALPHA_MODE_PREMULTIPLIED: QarColorAlphaMode
pub const QAR_COLOR_ALPHA_MODE_PREMULTIPLIED: QarColorAlphaMode
The colour is premultiplied by the alpha, and the alpha is the pixel’s coverage: what a renderer produces drawing over a transparent-black clear with ordinary alpha blending.
Sourcepub const QAR_COLOR_ALPHA_MODE_STRAIGHT: QarColorAlphaMode
pub const QAR_COLOR_ALPHA_MODE_STRAIGHT: QarColorAlphaMode
The colour is not multiplied by the alpha, and the alpha is the pixel’s coverage. The sender premultiplies the colour before the frame leaves the application, so the stream publishes QAR_COLOR_ALPHA_MODE_PREMULTIPLIED. Costs one shader pass per frame, even when no other conversion is needed.