GPU/Internal Registers: Difference between revisions
It is not. The behaviour of the ifu command suggests otherwise: 0=true 1=false. I tested it earlier this morning. |
→Geometry pipeline registers: Correct documentation about the GPUREG_FIXEDATTRIB_DATAi registers |
||
Line 7,545: | Line 7,545: | ||
This register selects the index of the fixed attribute to be input with GPUREG_FIXEDATTRIB_DATA''i''. See [[GPU/Fixed Vertex Attributes]] and [[GPU/Immediate-Mode Vertex Submission]] for usage info. | This register selects the index of the fixed attribute to be input with GPUREG_FIXEDATTRIB_DATA''i''. See [[GPU/Fixed Vertex Attributes]] and [[GPU/Immediate-Mode Vertex Submission]] for usage info. | ||
=== | === GPUREG_FIXEDATTRIB_DATA''i'' === | ||
'''DATA0:''' | |||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
! Bits | ! Bits | ||
! Description | ! Description | ||
|- | |- | ||
| 0-23 | | colspan="2" | '''DATA0:''' | ||
| float1.7.16, Vertex attribute element | |- | ||
| 0-7 | |||
| float1.7.16, Vertex attribute element 3 (Z) (bits 16-23) | |||
|- | |||
| 8-31 | |||
| float1.7.16, Vertex attribute element 4 (W) | |||
|- | |||
| colspan="2" | '''DATA1:''' | |||
|- | |- | ||
| | | 0-15 | ||
| float1.7.16, Vertex attribute element 2 ( | | float1.7.16, Vertex attribute element 2 (Y) (bits 8-23) | ||
|- | |- | ||
| | | 16-31 | ||
| float1.7.16, Vertex attribute element | | float1.7.16, Vertex attribute element 3 (Z) (bits 0-15) | ||
|- | |- | ||
| | | colspan="2" | '''DATA2:''' | ||
|- | |- | ||
| 0-23 | | 0-23 | ||
| float1.7.16, Vertex attribute element | | float1.7.16, Vertex attribute element 1 (X) | ||
|- | |- | ||
| 24-31 | | 24-31 | ||
| float1.7.16, Vertex attribute element | | float1.7.16, Vertex attribute element 2 (Y) (bits 0-7) | ||
|} | |} | ||
Accepts | Accepts four 24-bit floating-point values that make up a vertex attribute. Stored in the fixed attribute currently specified with GPUREG_FIXEDATTRIB_INDEX. If immediate-mode vertex submission is enabled (by writing 0xF to the index register) then vertex data is input here directly. | ||
=== GPUREG_CMDBUF_SIZE0 === | === GPUREG_CMDBUF_SIZE0 === |