By entering this site you need to consent to the use of cookies and their functional use according to this privacy policy. Cookies help us to provide the functional services of the website. Kindly read the below message of use and consent to the use.
The following cookies are stored and shared when accessing this website:
- Internal cookies for the MediaWiki site. This is used for user authentication and article modifications.
- Third-party cookies from Google providing services for Google AdSense and Google Analytics
We will never use data collected outside of the above scope.
This page describes the structure of the buffer for [[GX_Commands|GX command]] 1 with the registers at [[GPU|0x1EF018E0]]. This buffer is used for GPU commands including OpenGL commands, each 8-byte entry in the buffer is a command. Cmd+0 is the command parameter, and cmd+4 is the cmdID.
+
This page describes the structure of the buffer for [[GX_Commands|GX command]] 1 with the registers at [[GPU|0x1EF018E0]]. This buffer is used for GPU commands including OpenGL commands, each 8-byte entry in the buffer is a command. Cmd+0 is the command parameter, and cmd+4 is the command header.
+
+
=== Command Header ===
+
{| class="wikitable" border="1"
+
! Bit
+
! Description
+
|-
+
| 19-0
+
| Command ID
+
|-
+
| 31-20
+
| Total words following the command, if any.
+
|}
+
The first word in the parameter data structure is the command parameter value, the rest of the data structure is from the data following the command. The word after the last data structure word is usually padding.
=== Commands ===
=== Commands ===
Line 33:
Line 46:
| 0xXXXF02C1
| 0xXXXF02C1
| float X coordinate for the first vertex
| float X coordinate for the first vertex
−
| CmdID is <nowiki>0x000F02C1 | ((totalvertices<<22) - 0x100000).</nowiki> The vertex entries is the data following the command. The first word in the first vertex entry is the Y coordinate.
+
| The vertex entries is the data following the command.
|}
|}
Line 42:
Line 55:
|-
|-
| 0
| 0
−
| float X coordinate, for the first vertex this is stored in the command parameter instead.