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:
parent
34b2c60f95
commit
99e23bd0fd
2 changed files with 22 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue