aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/citra_qt/debugger/graphics_framebuffer.h
diff options
context:
space:
mode:
authorGravatar Subv <subv2112@gmail.com>2015-03-08 20:07:02 -0500
committerGravatar Subv <subv2112@gmail.com>2015-03-09 20:13:15 -0500
commit155cc80e3b39f51cb75c6ab2bf9203fbfe444be3 (patch)
treec3e32a7b4629f478d6d590f18111163ad8d1ca97 /src/citra_qt/debugger/graphics_framebuffer.h
parent414b0741c445a7960f9ad1ee4a5672f8af4760db (diff)
Frontend/Qt: Allow the framebuffer widget to inspect the depth buffer
Diffstat (limited to 'src/citra_qt/debugger/graphics_framebuffer.h')
-rw-r--r--src/citra_qt/debugger/graphics_framebuffer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/citra_qt/debugger/graphics_framebuffer.h b/src/citra_qt/debugger/graphics_framebuffer.h
index 15ebd1f7..dff91d13 100644
--- a/src/citra_qt/debugger/graphics_framebuffer.h
+++ b/src/citra_qt/debugger/graphics_framebuffer.h
@@ -21,7 +21,8 @@ class GraphicsFramebufferWidget : public BreakPointObserverDock {
enum class Source {
PicaTarget = 0,
- Custom = 1,
+ DepthBuffer = 1,
+ Custom = 2,
// TODO: Add GPU framebuffer sources!
};
@@ -32,8 +33,13 @@ class GraphicsFramebufferWidget : public BreakPointObserverDock {
RGB5A1 = 2,
RGB565 = 3,
RGBA4 = 4,
+ D16 = 5,
+ D24 = 6,
+ D24S8 = 7
};
+ static u32 BytesPerPixel(Format format);
+
public:
GraphicsFramebufferWidget(std::shared_ptr<Pica::DebugContext> debug_context, QWidget* parent = nullptr);