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.
Yuriks (talk | contribs)
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_DATA0 ===
=== 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 1
|-
| 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:'''
|-
|-
| 24-31
| 0-15
| float1.7.16, Vertex attribute element 2 (lower 8 bits)
| float1.7.16, Vertex attribute element 2 (Y) (bits 8-23)
|}
 
Accepts the first part of the 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_FIXEDATTRIB_DATA1 ===
 
{| class="wikitable" border="1"
! Bits
! Description
|-
|-
| 0-23
| 16-31
| float1.7.16, Vertex attribute element 2 (upper 16 bits)
| float1.7.16, Vertex attribute element 3 (Z) (bits 0-15)
|-
|-
| 24-31
| colspan="2" | '''DATA2:'''
| float1.7.16, Vertex attribute element 3 (lower 16 bits)
|}
 
Accepts the second part of the 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_FIXEDATTRIB_DATA2 ===
 
{| class="wikitable" border="1"
! Bits
! Description
|-
|-
| 0-23
| 0-23
| float1.7.16, Vertex attribute element 3 (upper 8 bits)
| float1.7.16, Vertex attribute element 1 (X)
|-
|-
| 24-31
| 24-31
| float1.7.16, Vertex attribute element 4
| float1.7.16, Vertex attribute element 2 (Y) (bits 0-7)
|}
|}


Accepts the third part of the 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.
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 ===