GPU/Commands: Difference between revisions
No edit summary |
No edit summary |
||
Line 43: | Line 43: | ||
| 0x000F0041 | | 0x000F0041 | ||
| float | | float | ||
| | | See command set 0x000F0041. | ||
|- | |- | ||
| 0x000F0042 | | 0x000F0042 | ||
| float | | float | ||
| | | See command set 0x000F0041. | ||
|- | |- | ||
| 0x000F0043 | | 0x000F0043 | ||
| float | | float | ||
| | | See command set 0x000F0041. | ||
|- | |- | ||
| 0x000F0044 | | 0x000F0044 | ||
| float | | float | ||
| | | See command set 0x000F0041. | ||
|- | |- | ||
| 0x801F004D | | 0x801F004D | ||
Line 67: | Line 67: | ||
| 0x000F0068 | | 0x000F0068 | ||
| u32 | | u32 | ||
| | | See command set 0x000F0041. | ||
|- | |- | ||
| 0x000F006E | | 0x000F006E | ||
Line 169: | Line 169: | ||
===== CmdID 0x809F0081 ===== | ===== CmdID 0x809F0081 ===== | ||
This sets current texture info, see [[GPU Textures|GPU textures]]. | This sets current texture info, see [[GPU Textures|GPU textures]]. | ||
===== CmdID 0x000F0041 ===== | |||
{| class="wikitable" border="1" | |||
! Command Index | |||
! CommandID | |||
! Parameter | |||
! Description | |||
|- | |||
| 0 | |||
| 0x000F0041 | |||
| float | |||
| ? | |||
|- | |||
| 1 | |||
| 0x000F0043 | |||
| float | |||
| ? | |||
|- | |||
| 2 | |||
| 0x000F0042 | |||
| float | |||
| This corresponds to the framebuffer width. | |||
|- | |||
| 3 | |||
| 0x000F0044 | |||
| float | |||
| This corresponds to the framebuffer height. | |||
|- | |||
| 4 | |||
| 0x000F0068 | |||
| u32 | |||
| This sets the X/Y coordinates used for glViewport(). | |||
|} | |||
This command set initializes the projection matrix. | |||
===== CmdID 0x00030107 ===== | ===== CmdID 0x00030107 ===== | ||
Line 314: | Line 349: | ||
|- | |- | ||
| 11-0 | | 11-0 | ||
| Framebuffer width | | Framebuffer/viewport width | ||
|- | |- | ||
| 23-12 | | 23-12 | ||
| Framebuffer height - 1 | | Framebuffer/viewport height - 1 | ||
|- | |- | ||
| 24 | | 24 | ||
Line 326: | Line 361: | ||
|} | |} | ||
Normally the width and height is set to the same [[GPU|dimensions]] used with GX [[GSP_Shared_Memory|command]] 3 and 4. | This specifies the width/height for glViewport(). Normally the framebuffer width and height is set to the same [[GPU|dimensions]] used with GX [[GSP_Shared_Memory|command]] 3 and 4. | ||
=== Parameter value format for CmdID 0x000F0068 === | |||
{| class="wikitable" border="1" | |||
! Bit | |||
! Description | |||
|- | |||
| 15-0 | |||
| X | |||
|- | |||
| 31-16 | |||
| Y | |||
|} | |||
This specifies the X/Y coordinates for glViewport(). | |||
=== Entries for CmdID 0xXXXF02C1 === | === Entries for CmdID 0xXXXF02C1 === |