Luna::Image::rhi_to_image_format
Image::ImageFormat rhi_to_image_format(RHI::Format format)
Converts RHI format to image format.
Parameters
-
in format
The RHI format.
Return value
Returns the converted image format. Returns ImageFormat::unknown if no image format can be mapped to the specified RHI format.