diff options
Diffstat (limited to 'src/citra_qt/debugger/graphics_framebuffer.h')
| -rw-r--r-- | src/citra_qt/debugger/graphics_framebuffer.h | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/src/citra_qt/debugger/graphics_framebuffer.h b/src/citra_qt/debugger/graphics_framebuffer.h deleted file mode 100644 index 5cd96f2e9..000000000 --- a/src/citra_qt/debugger/graphics_framebuffer.h +++ /dev/null | |||
| @@ -1,76 +0,0 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "citra_qt/debugger/graphics_breakpoint_observer.h" | ||
| 8 | |||
| 9 | class QComboBox; | ||
| 10 | class QLabel; | ||
| 11 | class QSpinBox; | ||
| 12 | |||
| 13 | class CSpinBox; | ||
| 14 | |||
| 15 | class GraphicsFramebufferWidget : public BreakPointObserverDock { | ||
| 16 | Q_OBJECT | ||
| 17 | |||
| 18 | using Event = Pica::DebugContext::Event; | ||
| 19 | |||
| 20 | enum class Source { | ||
| 21 | PicaTarget = 0, | ||
| 22 | DepthBuffer = 1, | ||
| 23 | Custom = 2, | ||
| 24 | |||
| 25 | // TODO: Add GPU framebuffer sources! | ||
| 26 | }; | ||
| 27 | |||
| 28 | enum class Format { | ||
| 29 | RGBA8 = 0, | ||
| 30 | RGB8 = 1, | ||
| 31 | RGB5A1 = 2, | ||
| 32 | RGB565 = 3, | ||
| 33 | RGBA4 = 4, | ||
| 34 | D16 = 5, | ||
| 35 | D24 = 6, | ||
| 36 | D24X8 = 7, | ||
| 37 | X24S8 = 8, | ||
| 38 | Unknown = 9 | ||
| 39 | }; | ||
| 40 | |||
| 41 | static u32 BytesPerPixel(Format format); | ||
| 42 | |||
| 43 | public: | ||
| 44 | GraphicsFramebufferWidget(std::shared_ptr<Pica::DebugContext> debug_context, QWidget* parent = nullptr); | ||
| 45 | |||
| 46 | public slots: | ||
| 47 | void OnFramebufferSourceChanged(int new_value); | ||
| 48 | void OnFramebufferAddressChanged(qint64 new_value); | ||
| 49 | void OnFramebufferWidthChanged(int new_value); | ||
| 50 | void OnFramebufferHeightChanged(int new_value); | ||
| 51 | void OnFramebufferFormatChanged(int new_value); | ||
| 52 | void OnUpdate(); | ||
| 53 | |||
| 54 | private slots: | ||
| 55 | void OnBreakPointHit(Pica::DebugContext::Event event, void* data) override; | ||
| 56 | void OnResumed() override; | ||
| 57 | |||
| 58 | signals: | ||
| 59 | void Update(); | ||
| 60 | |||
| 61 | private: | ||
| 62 | |||
| 63 | QComboBox* framebuffer_source_list; | ||
| 64 | CSpinBox* framebuffer_address_control; | ||
| 65 | QSpinBox* framebuffer_width_control; | ||
| 66 | QSpinBox* framebuffer_height_control; | ||
| 67 | QComboBox* framebuffer_format_control; | ||
| 68 | |||
| 69 | QLabel* framebuffer_picture_label; | ||
| 70 | |||
| 71 | Source framebuffer_source; | ||
| 72 | unsigned framebuffer_address; | ||
| 73 | unsigned framebuffer_width; | ||
| 74 | unsigned framebuffer_height; | ||
| 75 | Format framebuffer_format; | ||
| 76 | }; | ||