Reality Display Processor/Commands: Difference between revisions

Fill Rectangle
(Set Primitive Depth)
(Fill Rectangle)
Line 793:
}}
 
====<span style="display:none;">0x36 - Fill_RectangleFill Rectangle ====
----
{| class="wikitable" style="text-align: center; white-space:nowrap;"
! colspan="17"|Fill_RectangleFill Rectangle <code>0x36</code>
|-
| 63:48 || — || — || colspan=6| command = 0x36[5:0] || colspan=8| fillRectangle_lower_right.x.lo[11:4]
|-
| 47:32 || colspan=4| fillRectangle_lower_right.x.lo[3:0] || colspan=12| fillRectangle_lower_right.y.lo[11:0]
|-
| 31:16 || — || — || — || — || — || — || — || — || colspan=8| fillRectangle_upper_left.x.hi[11:4]
|-
| 15:0 || colspan=4| fillRectangle_upper_left.x.hi[3:0] || colspan=12| fillRectangle_upper_left.y.hi[11:0]
|}
{{#invoke:Register table|definitions
| 61:56 | command[5:0] | 0x36
| 55:44 | fillRectangle_lower_right.x.lo[11:0] | Lower-right x coordinate (u10.2 format)
| 43:32 | fillRectangle_lower_right.y.lo[11:0] | Lower-right y coordinate (u10.2 format)
| 23:12 | fillRectangle_upper_left.x.hi[11:0] | Upper-left x coordinate (u10.2 format)
| 11:0 | fillRectangle_upper_left.y.hi[11:0] | Upper-right y coordinate (u10.2 format)
}}
 
Renders a solid-color rectangle.
 
In FILL and COPY mode, the rectangle coordinates are inclusive on the right and lower edges while in 1-Cycle and 2-Cycle mode they are exclusive.
 
In 1-Cycle or 2-Cycle mode, the rectangle is rendered with subpixel accuracy and can be anti-aliased if pixels are only partially covered. The color is determined by the blender output as with triangles and texture rectangles, not the fill color register.
 
In FILL mode, the rectangle is rendered without subpixel accuracy (upper-left coordinates are rounded down, lower-right coordinates are rounded up) and the color is determined solely by the fill color register.
 
'''Hazards'''
* In 1-Cycle and 2-Cycle mode using attributes such as shade color, texture coordinates and per-pixel depth may be ill-defined. (TOVERIFY: It's either always 0 or uses the last value from previous primitives, check which)
* In COPY mode, fill rectangle behaves like texture rectangle with all texture attributes (tile, s, t, dsdx, dtdy) set to 0. (TOVERIFY: as above, is it always 0 or is it left over values from previous primitives?)
 
====<span style="display:none;">0x37 - Set Fill Color ====
56

edits