summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/debugger/graphics_vertex_shader.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-12-21 23:19:12 +0100
committerLioncash <mathew1800@gmail.com>2016-12-21 23:19:21 +0100
commit8309d0dade37684076ad530bfbca5d4ffc6d1f4d (patch)
treec7eb1050f664df4aad518c55b6648807b0cef2db /src/citra_qt/debugger/graphics_vertex_shader.h
parentMerge pull request #2319 from yuriks/profile-scopes (diff)
downloadyuzu-8309d0dade37684076ad530bfbca5d4ffc6d1f4d.tar
yuzu-8309d0dade37684076ad530bfbca5d4ffc6d1f4d.tar.gz
yuzu-8309d0dade37684076ad530bfbca5d4ffc6d1f4d.tar.bz2
yuzu-8309d0dade37684076ad530bfbca5d4ffc6d1f4d.tar.lz
yuzu-8309d0dade37684076ad530bfbca5d4ffc6d1f4d.tar.xz
yuzu-8309d0dade37684076ad530bfbca5d4ffc6d1f4d.tar.zst
yuzu-8309d0dade37684076ad530bfbca5d4ffc6d1f4d.zip
Diffstat (limited to 'src/citra_qt/debugger/graphics_vertex_shader.h')
-rw-r--r--src/citra_qt/debugger/graphics_vertex_shader.h87
1 files changed, 0 insertions, 87 deletions
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.h b/src/citra_qt/debugger/graphics_vertex_shader.h
deleted file mode 100644
index 6e62fbb9b..000000000
--- a/src/citra_qt/debugger/graphics_vertex_shader.h
+++ /dev/null
@@ -1,87 +0,0 @@
-// Copyright 2014 Citra Emulator Project
-// Licensed under GPLv2 or any later version
-// Refer to the license.txt file included.
-
-#pragma once
-
-#include <QAbstractTableModel>
-#include <QTreeView>
-#include "citra_qt/debugger/graphics_breakpoint_observer.h"
-#include "nihstro/parser_shbin.h"
-#include "video_core/shader/shader.h"
-
-class QLabel;
-class QSpinBox;
-
-class GraphicsVertexShaderWidget;
-
-class GraphicsVertexShaderModel : public QAbstractTableModel {
- Q_OBJECT
-
-public:
- explicit GraphicsVertexShaderModel(GraphicsVertexShaderWidget* parent);
-
- int columnCount(const QModelIndex& parent = QModelIndex()) const override;
- int rowCount(const QModelIndex& parent = QModelIndex()) const override;
- QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
- QVariant headerData(int section, Qt::Orientation orientation,
- int role = Qt::DisplayRole) const override;
-
-private:
- GraphicsVertexShaderWidget* par;
-
- friend class GraphicsVertexShaderWidget;
-};
-
-class GraphicsVertexShaderWidget : public BreakPointObserverDock {
- Q_OBJECT
-
- using Event = Pica::DebugContext::Event;
-
-public:
- GraphicsVertexShaderWidget(std::shared_ptr<Pica::DebugContext> debug_context,
- QWidget* parent = nullptr);
-
-private slots:
- void OnBreakPointHit(Pica::DebugContext::Event event, void* data) override;
- void OnResumed() override;
-
- void OnInputAttributeChanged(int index);
-
- void OnCycleIndexChanged(int index);
-
- void DumpShader();
-
- /**
- * Reload widget based on the current PICA200 state
- * @param replace_vertex_data If true, invalidate all current vertex data
- * @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.
- */
- void Reload(bool replace_vertex_data = false, void* vertex_data = nullptr);
-
-private:
- QLabel* instruction_description;
- QTreeView* binary_list;
- GraphicsVertexShaderModel* model;
-
- /// TODO: Move these into a single struct
- std::array<QLineEdit*, 4 * 16>
- input_data; // A text box for each of the 4 components of up to 16 vertex attributes
- std::array<QWidget*, 16>
- input_data_container; // QWidget containing the QLayout containing each vertex attribute
- std::array<QLabel*, 16> input_data_mapping; // A QLabel denoting the shader input attribute
- // which the vertex attribute maps to
-
- // Text to be shown when input vertex data is not retrievable
- QLabel* breakpoint_warning;
-
- QSpinBox* cycle_index;
-
- nihstro::ShaderInfo info;
- Pica::Shader::DebugData<true> debug_data;
- Pica::Shader::InputVertex input_vertex;
-
- friend class GraphicsVertexShaderModel;
-};