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

  • unknown

    The image format is unknown.

  • r8_unorm

    Format with one component of 8-bit normalized unsigned integer. Supported by all formats except .hdr.

  • rg8_unorm

    Format with two components of 8-bit normalized unsigned integer. Supported by all formats except .hdr.

  • rgb8_unorm

    Format with three components of 8-bit normalized unsigned integer. Supported by all formats except .hdr.

  • rgba8_unorm

    Format with four components of 8-bit normalized unsigned integer. Supported by all formats except .hdr.

  • r16_unorm

    Format with one component of 16-bit normalized unsigned integer. Supported only by .png.

  • rg16_unorm

    Format with two components of 16-bit normalized unsigned integer. Supported only by .png.

  • rgb16_unorm

    Format with three components of 16-bit normalized unsigned integer. Supported only by .png.

  • rgba16_unorm

    Format with four components of 16-bit normalized unsigned integer. Supported only by .png.

  • r32_float

    Format with one component of 32-bit floating-point number. Supported only by .hdr.

  • rg32_float

    Format with two components of 32-bit floating-point number. Supported only by .hdr.

  • rgb32_float

    Format with three components of 32-bit floating-point number. Supported only by .hdr.

  • rgba32_float

    Format with four components of 32-bit floating-point number. Supported only by .hdr.