summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r--src/video_core/gpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index 874eddd78..0164c747a 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -35,6 +35,10 @@ enum class RenderTargetFormat : u32 {
35 R11G11B10_FLOAT = 0xE0, 35 R11G11B10_FLOAT = 0xE0,
36 R32_FLOAT = 0xE5, 36 R32_FLOAT = 0xE5,
37 B5G6R5_UNORM = 0xE8, 37 B5G6R5_UNORM = 0xE8,
38 R16_UNORM = 0xEE,
39 R16_SNORM = 0xEF,
40 R16_SINT = 0xF0,
41 R16_UINT = 0xF1,
38 R16_FLOAT = 0xF2, 42 R16_FLOAT = 0xF2,
39 R8_UNORM = 0xF3, 43 R8_UNORM = 0xF3,
40}; 44};
@@ -52,6 +56,9 @@ enum class DepthFormat : u32 {
52/// Returns the number of bytes per pixel of each rendertarget format. 56/// Returns the number of bytes per pixel of each rendertarget format.
53u32 RenderTargetBytesPerPixel(RenderTargetFormat format); 57u32 RenderTargetBytesPerPixel(RenderTargetFormat format);
54 58
59/// Returns the number of bytes per pixel of each depth format.
60u32 DepthFormatBytesPerPixel(DepthFormat format);
61
55class DebugContext; 62class DebugContext;
56 63
57/** 64/**