summaryrefslogtreecommitdiffstats
path: root/src/video_core/gpu.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-03-23 02:04:30 +0100
committerbunnei <bunneidev@gmail.com>2018-03-23 02:04:30 +0100
commitbfe45774f16e958bf34ed0d58a1d31e2325df47d (patch)
tree44504233efc7690eca7149eccdcb6a0074f694e1 /src/video_core/gpu.h
parentgl_rasterizer: Replace a bunch of UNIMPLEMENTED with ASSERT. (diff)
downloadyuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar
yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.gz
yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.bz2
yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.lz
yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.xz
yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.tar.zst
yuzu-bfe45774f16e958bf34ed0d58a1d31e2325df47d.zip
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 @@
namespace Tegra {
+/**
+ * Struct describing framebuffer configuration
+ */
+struct FramebufferConfig {
+ enum class PixelFormat : u32 {
+ ABGR8 = 1,
+ };
+
+ /**
+ * Returns the number of bytes per pixel.
+ */
+ static u32 BytesPerPixel(PixelFormat format) {
+ switch (format) {
+ case PixelFormat::ABGR8:
+ return 4;
+ }
+
+ UNREACHABLE();
+ }
+
+ VAddr address;
+ u32 offset;
+ u32 width;
+ u32 height;
+ u32 stride;
+ PixelFormat pixel_format;
+ bool flip_vertical;
+};
+
namespace Engines {
class Fermi2D;
class Maxwell3D;