aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r--src/video_core/pica.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index 8ebe0dc3..7cbc45f9 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -4,6 +4,9 @@
#pragma once
+#include <initializer_list>
+#include <map>
+
#include "common/bit_field.h"
#include "common/common_types.h"
@@ -34,4 +37,17 @@ union CommandHeader {
BitField<31, 1, u32> group_commands;
};
+static std::map<CommandId, const char*> command_names = {
+ {CommandId::ViewportSizeX, "ViewportSizeX" },
+ {CommandId::ViewportInvSizeX, "ViewportInvSizeX" },
+ {CommandId::ViewportSizeY, "ViewportSizeY" },
+ {CommandId::ViewportInvSizeY, "ViewportInvSizeY" },
+ {CommandId::ViewportCorner, "ViewportCorner" },
+ {CommandId::DepthBufferFormat, "DepthBufferFormat" },
+ {CommandId::ColorBufferFormat, "ColorBufferFormat" },
+ {CommandId::DepthBufferAddress, "DepthBufferAddress" },
+ {CommandId::ColorBufferAddress, "ColorBufferAddress" },
+ {CommandId::ColorBufferSize, "ColorBufferSize" },
+};
+
}