aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorGravatar Tony Wasserka <NeoBrainX@gmail.com>2014-05-17 23:07:51 +0200
committerGravatar bunnei <ericbunnie@gmail.com>2014-06-12 06:10:51 -0400
commit50b2b73be4bc294856726e9a0f46fd16af355b0e (patch)
treed72cc76e5c2d3a2da53ee0c569cd1a460eb2a865 /src/video_core/pica.h
parentd4530765ceaf75cecd16b3ed5a7829611af2d82c (diff)
video core: added PICA definitions file.
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r--src/video_core/pica.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
new file mode 100644
index 00000000..dab86140
--- /dev/null
+++ b/src/video_core/pica.h
@@ -0,0 +1,35 @@
+// Copyright 2014 Citra Emulator Project
+// Licensed under GPLv2
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "common/bit_field.h"
+#include "common/common_types.h"
+
+namespace Pica {
+
+enum class CommandId : u32
+{
+ ViewportSizeX = 0x41,
+ ViewportInvSizeX = 0x42,
+ ViewportSizeY = 0x43,
+ ViewportInvSizeY = 0x44,
+ ViewportCorner = 0x68,
+ DepthBufferFormat = 0x116,
+ ColorBufferFormat = 0x117,
+ DepthBufferAddress = 0x11C,
+ ColorBufferAddress = 0x11D,
+ ColorBufferSize = 0x11E,
+};
+
+union CommandHeader {
+ u32 hex;
+
+ BitField< 0, 16, CommandId> cmd_id;
+ BitField<16, 4, u32> parameter_mask;
+ BitField<20, 11, u32> extra_data_length;
+ BitField<31, 1, u32> group_commands;
+};
+
+}