diff options
Diffstat (limited to 'src/yuzu/debugger/graphics/graphics.h')
| -rw-r--r-- | src/yuzu/debugger/graphics/graphics.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/yuzu/debugger/graphics/graphics.h b/src/yuzu/debugger/graphics/graphics.h new file mode 100644 index 000000000..8837fb792 --- /dev/null +++ b/src/yuzu/debugger/graphics/graphics.h | |||
| @@ -0,0 +1,41 @@ | |||
| 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 <QAbstractListModel> | ||
| 8 | #include <QDockWidget> | ||
| 9 | #include "video_core/gpu_debugger.h" | ||
| 10 | |||
| 11 | class GPUCommandStreamItemModel : public QAbstractListModel, | ||
| 12 | public GraphicsDebugger::DebuggerObserver { | ||
| 13 | Q_OBJECT | ||
| 14 | |||
| 15 | public: | ||
| 16 | explicit GPUCommandStreamItemModel(QObject* parent); | ||
| 17 | |||
| 18 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | ||
| 19 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | ||
| 20 | |||
| 21 | public: | ||
| 22 | void GXCommandProcessed(int total_command_count) override; | ||
| 23 | |||
| 24 | public slots: | ||
| 25 | void OnGXCommandFinishedInternal(int total_command_count); | ||
| 26 | |||
| 27 | signals: | ||
| 28 | void GXCommandFinished(int total_command_count); | ||
| 29 | |||
| 30 | private: | ||
| 31 | int command_count; | ||
| 32 | }; | ||
| 33 | |||
| 34 | class GPUCommandStreamWidget : public QDockWidget { | ||
| 35 | Q_OBJECT | ||
| 36 | |||
| 37 | public: | ||
| 38 | GPUCommandStreamWidget(QWidget* parent = nullptr); | ||
| 39 | |||
| 40 | private: | ||
| 41 | }; | ||