Skip to main content

ferroui_base/platform/
alpha_format.rs

1/// Describes how to interpret the alpha component of a pixel.
2#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
3pub enum AlphaFormat {
4    /// All pixels have their alpha premultiplied in their color components.
5    #[default]
6    Premul,
7    /// All pixels have their color components stored without any regard to
8    /// the alpha, e.g. they are unpremultiplied.
9    Unpremul,
10    /// All pixels are stored as opaque.
11    Opaque,
12}