Reality Display Processor/Commands: Difference between revisions
Consolidate triangle command variants into single section with subsections for optional properties
(Make headings for each command visible (mobile fix attempt)) |
(Consolidate triangle command variants into single section with subsections for optional properties) |
||
Line 43:
=== 0x08 through 0x0F - Fill Triangle ===
----
The Fill Triangle command varies in length depending on whether shade, texture or depth is enabled in the first word. For any of these properties that are enabled, additional words are appended to the base command words in order of shading, texturing, z-buffering.
==== Base Command ====
Every triangle type begins with a common base that describes the type, shape and other small properties of the triangle.
{| class="wikitable" style="text-align: center; white-space:nowrap;"
! colspan="18"|Fill Triangle <code>0x08</code> through <code>0x0F</code> (base)
|-
| rowspan="4"|Word 0 || 63:48 || — || — || 0 || 0 || 1 || shade || texture || zbuffer || lmajor || — || colspan=3| level[2:0] || colspan=3| tile[2:0]
Line 113 ⟶ 120:
}}
----
==== Optional Shading Properties ====
If the '''shade''' bit was set in the base triangle description, the above words will be followed by these 8 words describing triangle shading properties:
{| class="wikitable" style="text-align: center; white-space:nowrap;"
! colspan="18"|Fill Shaded Triangle (suffix)
|-
| rowspan="4"|Word 0 || 63:48 || - || - || - || - || - || - || - || colspan=9| r.i[8:0]
Line 241 ⟶ 250:
}}
----
==== Optional Texturing Properties ====
If the '''texture''' bit was set in the base triangle description, the above words will be followed by these 8 words describing triangle texturing properties:
{| class="wikitable" style="text-align: center; white-space:nowrap;"
! colspan="18"|Fill Textured Triangle (
|-
| rowspan="4"|Word 0 || 63:48 || colspan=16| s.i[15:0]
Line 360 ⟶ 372:
}}
----
==== Optional Depth Properties ====
If the '''zbuffer''' bit was set in the base triangle description, the above words will be followed by these 2 words describing triangle depth properties:
{| class="wikitable" style="text-align: center; white-space:nowrap;"
! colspan="18"| Fill Z-Buffered Triangle (
|-
| rowspan="4"|Word 0 || 63:48 || colspan=16| z.i[15:0]
|