Luna::Image::ImageFormat
enum ImageFormat : u8
{
unknown
r8_unorm
rg8_unorm
rgb8_unorm
rgba8_unorm
r16_unorm
rg16_unorm
rgb16_unorm
rgba16_unorm
r32_float
rg32_float
rgb32_float
rgba32_float
}
Formats that can be saved in one image file (except DDS, which is identified by DDSFormat).
Options
-
The image format is unknown.
-
Format with one component of 8-bit normalized unsigned integer. Supported by all formats except .hdr.
-
Format with two components of 8-bit normalized unsigned integer. Supported by all formats except .hdr.
-
Format with three components of 8-bit normalized unsigned integer. Supported by all formats except .hdr.
-
Format with four components of 8-bit normalized unsigned integer. Supported by all formats except .hdr.
-
Format with one component of 16-bit normalized unsigned integer. Supported only by .png.
-
Format with two components of 16-bit normalized unsigned integer. Supported only by .png.
-
Format with three components of 16-bit normalized unsigned integer. Supported only by .png.
-
Format with four components of 16-bit normalized unsigned integer. Supported only by .png.
-
Format with one component of 32-bit floating-point number. Supported only by .hdr.
-
Format with two components of 32-bit floating-point number. Supported only by .hdr.
-
Format with three components of 32-bit floating-point number. Supported only by .hdr.
-
Format with four components of 32-bit floating-point number. Supported only by .hdr.