GPU Textures: Difference between revisions
No edit summary |
Identify commands by their ID, not by some random header they are used with. |
||
Line 1: | Line 1: | ||
This page describes the [[GPU_Commands|GPU commands]] used for textures. | This page describes the [[GPU_Commands|GPU commands]] used for textures. | ||
== Command set | == Command set 0x0081 == | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
! Command Index | ! Command Index | ||
Line 9: | Line 9: | ||
|- | |- | ||
| 0 | | 0 | ||
| | | 0x0081 | ||
| | | | ||
| This is used to set the current texture info used for rendering. | | This is used to set the current texture info used for rendering. | ||
|- | |- | ||
| 1 | | 1 | ||
| | | 0x008E | ||
| u32 color type | | u32 color type | ||
| This sets the current texture color type. | | This sets the current texture color type. | ||
|} | |} | ||
Textures are initially disabled when beginning rendering for each mesh, this command set also enables textures. This command set is used for index0, commands | Textures are initially disabled when beginning rendering for each mesh, this command set also enables textures. This command set is used for index0, commands 0x0091 and 0x0099 are used for index1-index2. | ||
=== Texture info parameter structure for | === Texture info parameter structure for command 0x0081 === | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
! Index Word | ! Index Word | ||
Line 45: | Line 45: | ||
|} | |} | ||
== Texture info parameter structure for | == Texture info parameter structure for commands 0x0091 and 0x0099 == | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
! Index Word | ! Index Word | ||
Line 51: | Line 51: | ||
|- | |- | ||
| 4-0 | | 4-0 | ||
| Same as | | Same as command 0x0081. | ||
|- | |- | ||
| 5 | | 5 |