aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/gpu.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-04-24 21:57:10 -0500
committerSubv <subv2112@gmail.com>2018-04-25 11:55:29 -0500
commita6da2b93c16fd09ef491606d9a0dc99b51f4186f (patch)
treebdb43a4548440b5ab958d16df87e144a2121cc7e /src/video_core/gpu.h
parent378c881427d34962461099ef3d55de871710b897 (diff)
GPU: Added a function to retrieve the bytes per pixel of the render target formats.
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r--src/video_core/gpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 7afa6aaefa..f168a51712 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -21,6 +21,9 @@ enum class RenderTargetFormat : u32 {
RGBA8_SRGB = 0xD6,
};
+/// Returns the number of bytes per pixel of each rendertarget format.
+u32 RenderTargetBytesPerPixel(RenderTargetFormat format);
+
class DebugContext;
/**