Luna::RHI::bits_per_pixel

usize bits_per_pixel(Format format)

Gets the size of one pixel in the specified format, in bits.

Parameters

  • in format

    The format to check.

Return value

Returns the number of bits used for one pixel of the specified format.