summaryrefslogtreecommitdiff
path: root/src/citra_qt/debugger/graphics_cmdlists.hxx
diff options
context:
space:
mode:
authorGravatar Tony Wasserka2014-08-24 17:23:02 +0200
committerGravatar Tony Wasserka2014-12-09 16:37:34 +0100
commit2793619dcef9fb2f97db5f0258ca950e18fe7f13 (patch)
tree47f0b608ca674d7dce921de2e11b10fc1ca9807a /src/citra_qt/debugger/graphics_cmdlists.hxx
parentcitra-qt: Add texture viewer to Pica command list. (diff)
downloadyuzu-2793619dcef9fb2f97db5f0258ca950e18fe7f13.tar.gz
yuzu-2793619dcef9fb2f97db5f0258ca950e18fe7f13.tar.xz
yuzu-2793619dcef9fb2f97db5f0258ca950e18fe7f13.zip
citra_qt: Add enhanced texture debugging widgets.
Double-clicking a texture parameter command in the pica command lists will spawn these as a new tab in the pica command list dock area.
Diffstat (limited to 'src/citra_qt/debugger/graphics_cmdlists.hxx')
-rw-r--r--src/citra_qt/debugger/graphics_cmdlists.hxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics_cmdlists.hxx b/src/citra_qt/debugger/graphics_cmdlists.hxx
index 37fe19053..a459bba64 100644
--- a/src/citra_qt/debugger/graphics_cmdlists.hxx
+++ b/src/citra_qt/debugger/graphics_cmdlists.hxx
@@ -45,6 +45,8 @@ public:
45 45
46public slots: 46public slots:
47 void OnToggleTracing(); 47 void OnToggleTracing();
48 void OnCommandDoubleClicked(const QModelIndex&);
49
48 void SetCommandInfo(const QModelIndex&); 50 void SetCommandInfo(const QModelIndex&);
49 51
50signals: 52signals:
@@ -57,3 +59,25 @@ private:
57 QWidget* command_info_widget; 59 QWidget* command_info_widget;
58 QPushButton* toggle_tracing; 60 QPushButton* toggle_tracing;
59}; 61};
62
63class TextureInfoDockWidget : public QDockWidget {
64 Q_OBJECT
65
66public:
67 TextureInfoDockWidget(const Pica::DebugUtils::TextureInfo& info, QWidget* parent = nullptr);
68
69signals:
70 void UpdatePixmap(const QPixmap& pixmap);
71
72private slots:
73 void OnAddressChanged(qint64 value);
74 void OnFormatChanged(int value);
75 void OnWidthChanged(int value);
76 void OnHeightChanged(int value);
77 void OnStrideChanged(int value);
78
79private:
80 QPixmap ReloadPixmap() const;
81
82 Pica::DebugUtils::TextureInfo info;
83};