#[repr(C)]pub struct QarRenderSenderAlphaModeExt {
pub header: QarStructureHeader,
pub alpha_mode: QarColorAlphaMode,
}Expand description
@brief Declares what a render sender’s colour alpha means.
Chain it on QarRenderSenderInit::header.next, in any position beside the graphics extension. The stream publishes the mode, and a receiver composites by it: the QAROS mixer draws a QAR_COLOR_ALPHA_MODE_PREMULTIPLIED stream with its alpha as coverage, and a QAR_COLOR_ALPHA_MODE_OPAQUE one fully covered, whatever its alpha channel holds. A QAR_COLOR_ALPHA_MODE_STRAIGHT colour is premultiplied by the sender and published as PREMULTIPLIED. Without this extension the stream declares QAR_COLOR_ALPHA_MODE_UNSPECIFIED and the receiver keeps its own default.
A B8G8R8X8 colour has no alpha; declare nothing, or OPAQUE.
Fields§
§header: QarStructureHeaderQAR_STRUCTURE_TYPE_RENDER_SENDER_ALPHA_MODE_EXT. Set with qar_render_sender_alpha_mode_ext_default().
alpha_mode: QarColorAlphaModeThe declared mode. A value this library does not know is rejected with QAR_STATUS_ARGUMENT_NOT_SUPPORTED.