aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/surface.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-09-13 00:17:26 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-09-13 00:27:04 -0300
commit2727ebd80115eda2651691c79247f30d33192a98 (patch)
treec87bb539ac697b54dfe78e8aa2dda8aa3171b4fb /src/video_core/surface.h
parent497302dff24c71c96fe9576432b0ade71bd1d2a5 (diff)
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.
Diffstat (limited to 'src/video_core/surface.h')
-rw-r--r--src/video_core/surface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/surface.h b/src/video_core/surface.h
index 83f31c12cd..19268b7cd5 100644
--- a/src/video_core/surface.h
+++ b/src/video_core/surface.h
@@ -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