summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-03-22 21:04:30 -0400
committerGravatar bunnei2018-03-22 21:04:30 -0400
commitbfe45774f16e958bf34ed0d58a1d31e2325df47d (patch)
tree44504233efc7690eca7149eccdcb6a0074f694e1 /src/video_core/gpu.h
parentgl_rasterizer: Replace a bunch of UNIMPLEMENTED with ASSERT. (diff)
downloadyuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.gz
yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.xz
yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.zip
video_core: Move FramebufferInfo to FramebufferConfig in GPU.
Diffstat (limited to 'src/video_core/gpu.h')
-rw-r--r--src/video_core/gpu.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/video_core/gpu.h b/src/video_core/gpu.h
index f9a725dee..f3c5e366a 100644
--- a/src/video_core/gpu.h
+++ b/src/video_core/gpu.h
@@ -12,6 +12,35 @@
12 12
13namespace Tegra { 13namespace Tegra {
14 14
15/**
16 * Struct describing framebuffer configuration
17 */
18struct FramebufferConfig {
19 enum class PixelFormat : u32 {
20 ABGR8 = 1,
21 };
22
23 /**
24 * Returns the number of bytes per pixel.
25 */
26 static u32 BytesPerPixel(PixelFormat format) {
27 switch (format) {
28 case PixelFormat::ABGR8:
29 return 4;
30 }
31
32 UNREACHABLE();
33 }
34
35 VAddr address;
36 u32 offset;
37 u32 width;
38 u32 height;
39 u32 stride;
40 PixelFormat pixel_format;
41 bool flip_vertical;
42};
43
15namespace Engines { 44namespace Engines {
16class Fermi2D; 45class Fermi2D;
17class Maxwell3D; 46class Maxwell3D;