mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use documentation comments for PixelFormat.
This commit is contained in:
parent
2dde348b12
commit
410e5c6d6f
1 changed files with 8 additions and 4 deletions
|
@ -8,10 +8,14 @@ use webrender_traits;
|
|||
|
||||
#[derive(Clone, Copy, Deserialize, Eq, PartialEq, Serialize, HeapSizeOf)]
|
||||
pub enum PixelFormat {
|
||||
K8, // Luminance channel only
|
||||
KA8, // Luminance + alpha
|
||||
RGB8, // RGB, 8 bits per channel
|
||||
RGBA8, // RGB + alpha, 8 bits per channel
|
||||
/// Luminance channel only
|
||||
K8,
|
||||
/// Luminance + alpha
|
||||
KA8,
|
||||
/// RGB, 8 bits per channel
|
||||
RGB8,
|
||||
/// RGB + alpha, 8 bits per channel
|
||||
RGBA8,
|
||||
}
|
||||
|
||||
#[derive(Clone, Deserialize, Serialize, HeapSizeOf)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue