diff options
| author | 2015-02-11 22:17:46 +0100 | |
|---|---|---|
| committer | 2015-02-11 22:17:46 +0100 | |
| commit | f990728ad44246e5eca0e5ace32ea47f68e280c3 (patch) | |
| tree | 40b3e6837a25b8d7b8e269776df9553ad6e3bf41 /src/citra_qt/debugger/graphics_framebuffer.h | |
| parent | Merge pull request #558 from kevinhartman/gsp-writereg-mask (diff) | |
| parent | citra-qt: Add a vertex shader debugger. (diff) | |
| download | yuzu-f990728ad44246e5eca0e5ace32ea47f68e280c3.tar.gz yuzu-f990728ad44246e5eca0e5ace32ea47f68e280c3.tar.xz yuzu-f990728ad44246e5eca0e5ace32ea47f68e280c3.zip | |
Merge pull request #384 from neobrain/vertex_shader_debugger
Vertex shader debugger
Diffstat (limited to 'src/citra_qt/debugger/graphics_framebuffer.h')
| -rw-r--r-- | src/citra_qt/debugger/graphics_framebuffer.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/src/citra_qt/debugger/graphics_framebuffer.h b/src/citra_qt/debugger/graphics_framebuffer.h index 56215761e..c6e293bc9 100644 --- a/src/citra_qt/debugger/graphics_framebuffer.h +++ b/src/citra_qt/debugger/graphics_framebuffer.h | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include <QDockWidget> | 7 | #include <QDockWidget> |
| 8 | 8 | ||
| 9 | #include "video_core/debug_utils/debug_utils.h" | 9 | #include "graphics_breakpoint_observer.h" |
| 10 | 10 | ||
| 11 | class QComboBox; | 11 | class QComboBox; |
| 12 | class QLabel; | 12 | class QLabel; |
| @@ -14,28 +14,6 @@ class QSpinBox; | |||
| 14 | 14 | ||
| 15 | class CSpinBox; | 15 | class CSpinBox; |
| 16 | 16 | ||
| 17 | // Utility class which forwards calls to OnPicaBreakPointHit and OnPicaResume to public slots. | ||
| 18 | // This is because the Pica breakpoint callbacks are called from a non-GUI thread, while | ||
| 19 | // the widget usually wants to perform reactions in the GUI thread. | ||
| 20 | class BreakPointObserverDock : public QDockWidget, Pica::DebugContext::BreakPointObserver { | ||
| 21 | Q_OBJECT | ||
| 22 | |||
| 23 | public: | ||
| 24 | BreakPointObserverDock(std::shared_ptr<Pica::DebugContext> debug_context, const QString& title, | ||
| 25 | QWidget* parent = nullptr); | ||
| 26 | |||
| 27 | void OnPicaBreakPointHit(Pica::DebugContext::Event event, void* data) override; | ||
| 28 | void OnPicaResume() override; | ||
| 29 | |||
| 30 | private slots: | ||
| 31 | virtual void OnBreakPointHit(Pica::DebugContext::Event event, void* data) = 0; | ||
| 32 | virtual void OnResumed() = 0; | ||
| 33 | |||
| 34 | signals: | ||
| 35 | void Resumed(); | ||
| 36 | void BreakPointHit(Pica::DebugContext::Event event, void* data); | ||
| 37 | }; | ||
| 38 | |||
| 39 | class GraphicsFramebufferWidget : public BreakPointObserverDock { | 17 | class GraphicsFramebufferWidget : public BreakPointObserverDock { |
| 40 | Q_OBJECT | 18 | Q_OBJECT |
| 41 | 19 | ||