graphics_vertex_shader.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <QAbstractListModel>
  6. #include "graphics_breakpoint_observer.h"
  7. #include "nihstro/parser_shbin.h"
  8. class GraphicsVertexShaderModel : public QAbstractItemModel {
  9. Q_OBJECT
  10. public:
  11. GraphicsVertexShaderModel(QObject* parent);
  12. QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override;
  13. QModelIndex parent(const QModelIndex& child) const override;
  14. int columnCount(const QModelIndex& parent = QModelIndex()) const override;
  15. int rowCount(const QModelIndex& parent = QModelIndex()) const override;
  16. QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
  17. QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
  18. public slots:
  19. void OnUpdate();
  20. private:
  21. nihstro::ShaderInfo info;
  22. };
  23. class GraphicsVertexShaderWidget : public BreakPointObserverDock {
  24. Q_OBJECT
  25. using Event = Pica::DebugContext::Event;
  26. public:
  27. GraphicsVertexShaderWidget(std::shared_ptr<Pica::DebugContext> debug_context,
  28. QWidget* parent = nullptr);
  29. private slots:
  30. void OnBreakPointHit(Pica::DebugContext::Event event, void* data) override;
  31. void OnResumed() override;
  32. signals:
  33. void Update();
  34. private:
  35. };