diff options
Diffstat (limited to 'src/citra_qt/debugger/graphics_vertex_shader.h')
| -rw-r--r-- | src/citra_qt/debugger/graphics_vertex_shader.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.h b/src/citra_qt/debugger/graphics_vertex_shader.h index 7f06f496a..96692d82c 100644 --- a/src/citra_qt/debugger/graphics_vertex_shader.h +++ b/src/citra_qt/debugger/graphics_vertex_shader.h | |||
| @@ -26,7 +26,8 @@ public: | |||
| 26 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; | 26 | int columnCount(const QModelIndex& parent = QModelIndex()) const override; |
| 27 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | 27 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; |
| 28 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | 28 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; |
| 29 | QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override; | 29 | QVariant headerData(int section, Qt::Orientation orientation, |
| 30 | int role = Qt::DisplayRole) const override; | ||
| 30 | 31 | ||
| 31 | private: | 32 | private: |
| 32 | GraphicsVertexShaderWidget* par; | 33 | GraphicsVertexShaderWidget* par; |
| @@ -56,7 +57,9 @@ private slots: | |||
| 56 | /** | 57 | /** |
| 57 | * Reload widget based on the current PICA200 state | 58 | * Reload widget based on the current PICA200 state |
| 58 | * @param replace_vertex_data If true, invalidate all current vertex data | 59 | * @param replace_vertex_data If true, invalidate all current vertex data |
| 59 | * @param vertex_data New vertex data to use, as passed to OnBreakPointHit. May be nullptr to specify that no valid vertex data can be retrieved currently. Only used if replace_vertex_data is true. | 60 | * @param vertex_data New vertex data to use, as passed to OnBreakPointHit. May be nullptr to |
| 61 | * specify that no valid vertex data can be retrieved currently. Only used if | ||
| 62 | * replace_vertex_data is true. | ||
| 60 | */ | 63 | */ |
| 61 | void Reload(bool replace_vertex_data = false, void* vertex_data = nullptr); | 64 | void Reload(bool replace_vertex_data = false, void* vertex_data = nullptr); |
| 62 | 65 | ||
| @@ -66,9 +69,12 @@ private: | |||
| 66 | GraphicsVertexShaderModel* model; | 69 | GraphicsVertexShaderModel* model; |
| 67 | 70 | ||
| 68 | /// TODO: Move these into a single struct | 71 | /// TODO: Move these into a single struct |
| 69 | std::array<QLineEdit*, 4*16> input_data; // A text box for each of the 4 components of up to 16 vertex attributes | 72 | std::array<QLineEdit*, 4 * 16> |
| 70 | std::array<QWidget*, 16> input_data_container; // QWidget containing the QLayout containing each vertex attribute | 73 | input_data; // A text box for each of the 4 components of up to 16 vertex attributes |
| 71 | std::array<QLabel*, 16> input_data_mapping; // A QLabel denoting the shader input attribute which the vertex attribute maps to | 74 | std::array<QWidget*, 16> |
| 75 | input_data_container; // QWidget containing the QLayout containing each vertex attribute | ||
| 76 | std::array<QLabel*, 16> input_data_mapping; // A QLabel denoting the shader input attribute | ||
| 77 | // which the vertex attribute maps to | ||
| 72 | 78 | ||
| 73 | // Text to be shown when input vertex data is not retrievable | 79 | // Text to be shown when input vertex data is not retrievable |
| 74 | QLabel* breakpoint_warning; | 80 | QLabel* breakpoint_warning; |