summaryrefslogtreecommitdiff
path: root/src/citra_qt/debugger/graphics_cmdlists.hxx
diff options
context:
space:
mode:
authorGravatar Tony Wasserka2014-08-24 14:39:52 +0200
committerGravatar Tony Wasserka2014-12-09 16:37:34 +0100
commitfd194d95b0f1522b970a2b77f9ea490fb8c3ef08 (patch)
tree61e8f33ae8c83dadc48271b8b872949791637dae /src/citra_qt/debugger/graphics_cmdlists.hxx
parentAdd GUI widget for controlling pica breakpoints. (diff)
downloadyuzu-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.hxx8
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
13class QPushButton; 13class QPushButton;
14class QTreeView;
14 15
15class GPUCommandListModel : public QAbstractListModel 16class GPUCommandListModel : public QAbstractListModel
16{ 17{
17 Q_OBJECT 18 Q_OBJECT
18 19
19public: 20public:
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
41public slots: 46public slots:
42 void OnToggleTracing(); 47 void OnToggleTracing();
48 void SetCommandInfo(const QModelIndex&);
43 49
44signals: 50signals:
45 void TracingFinished(const Pica::DebugUtils::PicaTrace&); 51 void TracingFinished(const Pica::DebugUtils::PicaTrace&);
@@ -47,5 +53,7 @@ signals:
47private: 53private:
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};