diff options
| author | 2014-08-24 14:39:52 +0200 | |
|---|---|---|
| committer | 2014-12-09 16:37:34 +0100 | |
| commit | fd194d95b0f1522b970a2b77f9ea490fb8c3ef08 (patch) | |
| tree | 61e8f33ae8c83dadc48271b8b872949791637dae /src/citra_qt/debugger/graphics_cmdlists.hxx | |
| parent | Add GUI widget for controlling pica breakpoints. (diff) | |
| download | yuzu-fd194d95b0f1522b970a2b77f9ea490fb8c3ef08.tar.gz yuzu-fd194d95b0f1522b970a2b77f9ea490fb8c3ef08.tar.xz yuzu-fd194d95b0f1522b970a2b77f9ea490fb8c3ef08.zip | |
citra-qt: Add texture viewer to Pica command list.
The texture viewer is enabled when selecting a write command to one of the texture config registers.
Diffstat (limited to 'src/citra_qt/debugger/graphics_cmdlists.hxx')
| -rw-r--r-- | src/citra_qt/debugger/graphics_cmdlists.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics_cmdlists.hxx b/src/citra_qt/debugger/graphics_cmdlists.hxx index 31bd2546d..37fe19053 100644 --- a/src/citra_qt/debugger/graphics_cmdlists.hxx +++ b/src/citra_qt/debugger/graphics_cmdlists.hxx | |||
| @@ -11,12 +11,17 @@ | |||
| 11 | #include "video_core/debug_utils/debug_utils.h" | 11 | #include "video_core/debug_utils/debug_utils.h" |
| 12 | 12 | ||
| 13 | class QPushButton; | 13 | class QPushButton; |
| 14 | class QTreeView; | ||
| 14 | 15 | ||
| 15 | class GPUCommandListModel : public QAbstractListModel | 16 | class GPUCommandListModel : public QAbstractListModel |
| 16 | { | 17 | { |
| 17 | Q_OBJECT | 18 | Q_OBJECT |
| 18 | 19 | ||
| 19 | public: | 20 | public: |
| 21 | enum { | ||
| 22 | CommandIdRole = Qt::UserRole, | ||
| 23 | }; | ||
| 24 | |||
| 20 | GPUCommandListModel(QObject* parent); | 25 | GPUCommandListModel(QObject* parent); |
| 21 | 26 | ||
| 22 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; | 27 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; |
| @@ -40,6 +45,7 @@ public: | |||
| 40 | 45 | ||
| 41 | public slots: | 46 | public slots: |
| 42 | void OnToggleTracing(); | 47 | void OnToggleTracing(); |
| 48 | void SetCommandInfo(const QModelIndex&); | ||
| 43 | 49 | ||
| 44 | signals: | 50 | signals: |
| 45 | void TracingFinished(const Pica::DebugUtils::PicaTrace&); | 51 | void TracingFinished(const Pica::DebugUtils::PicaTrace&); |
| @@ -47,5 +53,7 @@ signals: | |||
| 47 | private: | 53 | private: |
| 48 | std::unique_ptr<Pica::DebugUtils::PicaTrace> pica_trace; | 54 | std::unique_ptr<Pica::DebugUtils::PicaTrace> pica_trace; |
| 49 | 55 | ||
| 56 | QTreeView* list_widget; | ||
| 57 | QWidget* command_info_widget; | ||
| 50 | QPushButton* toggle_tracing; | 58 | QPushButton* toggle_tracing; |
| 51 | }; | 59 | }; |