Luna::Image::pixel_size

constexpr u32 pixel_size(ImageFormat format)

Gets the size of one pixel of the specified format in bytes.

Parameters

  • in format

    The format to query.

Return value

Returns the size of one pixel in bytes.