summaryrefslogtreecommitdiff
path: root/src/citra_qt/debugger/graphics_surface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/citra_qt/debugger/graphics_surface.h')
-rw-r--r--src/citra_qt/debugger/graphics_surface.h58
1 files changed, 28 insertions, 30 deletions
diff --git a/src/citra_qt/debugger/graphics_surface.h b/src/citra_qt/debugger/graphics_surface.h
index 7c7f50e38..5881ae60a 100644
--- a/src/citra_qt/debugger/graphics_surface.h
+++ b/src/citra_qt/debugger/graphics_surface.h
@@ -15,8 +15,7 @@ class CSpinBox;
15 15
16class GraphicsSurfaceWidget; 16class GraphicsSurfaceWidget;
17 17
18class SurfacePicture : public QLabel 18class SurfacePicture : public QLabel {
19{
20 Q_OBJECT 19 Q_OBJECT
21 20
22public: 21public:
@@ -29,7 +28,6 @@ protected slots:
29 28
30private: 29private:
31 GraphicsSurfaceWidget* surface_widget; 30 GraphicsSurfaceWidget* surface_widget;
32
33}; 31};
34 32
35class GraphicsSurfaceWidget : public BreakPointObserverDock { 33class GraphicsSurfaceWidget : public BreakPointObserverDock {
@@ -38,43 +36,44 @@ class GraphicsSurfaceWidget : public BreakPointObserverDock {
38 using Event = Pica::DebugContext::Event; 36 using Event = Pica::DebugContext::Event;
39 37
40 enum class Source { 38 enum class Source {
41 ColorBuffer = 0, 39 ColorBuffer = 0,
42 DepthBuffer = 1, 40 DepthBuffer = 1,
43 StencilBuffer = 2, 41 StencilBuffer = 2,
44 Texture0 = 3, 42 Texture0 = 3,
45 Texture1 = 4, 43 Texture1 = 4,
46 Texture2 = 5, 44 Texture2 = 5,
47 Custom = 6, 45 Custom = 6,
48 }; 46 };
49 47
50 enum class Format { 48 enum class Format {
51 // These must match the TextureFormat type! 49 // These must match the TextureFormat type!
52 RGBA8 = 0, 50 RGBA8 = 0,
53 RGB8 = 1, 51 RGB8 = 1,
54 RGB5A1 = 2, 52 RGB5A1 = 2,
55 RGB565 = 3, 53 RGB565 = 3,
56 RGBA4 = 4, 54 RGBA4 = 4,
57 IA8 = 5, 55 IA8 = 5,
58 RG8 = 6, ///< @note Also called HILO8 in 3DBrew. 56 RG8 = 6, ///< @note Also called HILO8 in 3DBrew.
59 I8 = 7, 57 I8 = 7,
60 A8 = 8, 58 A8 = 8,
61 IA4 = 9, 59 IA4 = 9,
62 I4 = 10, 60 I4 = 10,
63 A4 = 11, 61 A4 = 11,
64 ETC1 = 12, // compressed 62 ETC1 = 12, // compressed
65 ETC1A4 = 13, 63 ETC1A4 = 13,
66 MaxTextureFormat = 13, 64 MaxTextureFormat = 13,
67 D16 = 14, 65 D16 = 14,
68 D24 = 15, 66 D24 = 15,
69 D24X8 = 16, 67 D24X8 = 16,
70 X24S8 = 17, 68 X24S8 = 17,
71 Unknown = 18, 69 Unknown = 18,
72 }; 70 };
73 71
74 static unsigned int NibblesPerPixel(Format format); 72 static unsigned int NibblesPerPixel(Format format);
75 73
76public: 74public:
77 GraphicsSurfaceWidget(std::shared_ptr<Pica::DebugContext> debug_context, QWidget* parent = nullptr); 75 GraphicsSurfaceWidget(std::shared_ptr<Pica::DebugContext> debug_context,
76 QWidget* parent = nullptr);
78 void Pick(int x, int y); 77 void Pick(int x, int y);
79 78
80public slots: 79public slots:
@@ -97,7 +96,6 @@ signals:
97 void Update(); 96 void Update();
98 97
99private: 98private:
100
101 QComboBox* surface_source_list; 99 QComboBox* surface_source_list;
102 CSpinBox* surface_address_control; 100 CSpinBox* surface_address_control;
103 QSpinBox* surface_width_control; 101 QSpinBox* surface_width_control;