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§
- GbaColor
- RGB 5-bit per channel (bitpacked) linear(?) color data.
- r8_Srgb
- sRGB encoded Red data,
u8
. - r8_
Unorm - Linear Red data,
u8
. - r8g8b8_
Srgb - sRGB encoded RGB data,
u8
per channel. - r8g8b8_
Unorm - Linear RGB data,
u8
per channel. - r8g8b8a8_
Srgb - sRGB encoded RGB data + linear alpha,
u8
per channel. - r8g8b8a8_
Unorm - Linear RGBA data,
u8
per channel. - r16_
Unorm - Linear Red data,
u16
. - r16g16b16_
Unorm - Linear RGB data,
u16
per channel. - r16g16b16a16_
Unorm - Linear RGBA data,
u16
per channel. - r32_
Sfloat - Linear R data,
f32
. - r32g32b32_
Sfloat - Linear RGB data,
f32
per channel. - r32g32b32a32_
Sfloat - Linear RGBA data,
f32
per channel.
Functions§
- linear_
f32_ to_ srgb_ u8 - Converts a linear
f32
value into au8
sRGB encoded value. - srgb_
u8_ to_ linear_ f32 - Converts a
u8
sRGB encoded value into linearf32
form.