1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//#![no_std] // needed for f32 functions. TODO: pull in libm or something?
//! Structs for various pixels formats.
//!
//! Format types expose public fields where possible, though formats with
//! bitpacked data must use accessor methods.
//!
//! The docs for each type have notes on the appropriate constants to let that
//! type be used with GL or VK.
pub use *;
pub use *;
pub use *;
pub use *;
/// Converts a `u8` sRGB encoded value into linear `f32` form.
/// Converts a linear `f32` value into a `u8` sRGB encoded value.