video_core/surface: Add function to detect sRGB surfaces

This is required for proper conversion to RGBA8_UNORM or RGBA8_SRGB
surfaces when a backend can target both native and converted ASTC.
This commit is contained in:
ReinUsesLisp 2019-09-13 00:17:26 -03:00
parent 34b2c60f95
commit 99e23bd0fd
2 changed files with 22 additions and 0 deletions

View file

@ -547,6 +547,8 @@ SurfaceType GetFormatType(PixelFormat pixel_format);
bool IsPixelFormatASTC(PixelFormat format);
bool IsPixelFormatSRGB(PixelFormat format);
std::pair<u32, u32> GetASTCBlockSize(PixelFormat format);
/// Returns true if the specified PixelFormat is a BCn format, e.g. DXT or DXN