Crate pixel_formats
source ·Expand description
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.
Structs
- RGB 5-bit per channel (bitpacked) linear(?) color data.
- sRGB encoded Red data,
u8
. - Linear Red data,
u8
. - sRGB encoded RGB data,
u8
per channel. - Linear RGB data,
u8
per channel. - sRGB encoded RGB data + linear alpha,
u8
per channel. - Linear RGBA data,
u8
per channel. - Linear Red data,
u16
. - Linear RGB data,
u16
per channel. - Linear RGBA data,
u16
per channel. - Linear R data,
f32
. - Linear RGB data,
f32
per channel. - Linear RGBA data,
f32
per channel.
Functions
- Converts a linear
f32
value into au8
sRGB encoded value. - Converts a
u8
sRGB encoded value into linearf32
form.