GPU/Commands: Difference between revisions

No edit summary
No edit summary
Line 580: Line 580:
|-
|-
| 3-0
| 3-0
| See below values.
| See below values.(Field0 index0)
|-
|-
| 7-4
| 7-4
| See below values.
| See below values.(Field0 index1)
|-
|-
| 11-8
| 11-8
| See below values.
| See below values.(Field0 index2)
|-
|-
| 15-12
| 15-12
Line 592: Line 592:
|-
|-
| 19-16
| 19-16
| See below values.
| See below values.(Field1 index0)
|-
|-
| 23-20
| 23-20
| See below values.
| See below values.(Field1 index1)
|-
|-
| 27-24
| 27-24
| See below values.
| See below values.(Field1 index2)
|-
|-
| 31-28
| 31-28
Line 641: Line 641:
| 0xF
| 0xF
| GL_PREVIOUS
| GL_PREVIOUS
|}
==== Param1 format for CmdID 0x802F00C0 ====
{| class="wikitable" border="1"
!  Bit
!  Description
|-
| 3-0
| See below values for field0.(Index0)
|-
| 7-4
| See below values for field0.(Index1)
|-
| 11-8
| See below values for field0.(Index2)
|-
| 15-12
| See below values for field1.(Index0)
|-
| 19-16
| See below values for field1.(Index1)
|-
| 23-20
| See below values for field1.(Index2)
|-
| 31-24
| Unused
|}
==== Param1 field0 values for CmdID 0x802F00C0 ====
{| class="wikitable" border="1"
!  Value
!  GL type
|-
| 0x0
| GL_SRC_COLOR
|-
| 0x1
| GL_ONE_MINUS_SRC_COLOR
|-
| 0x2
| GL_SRC_ALPHA
|-
| 0x3
| GL_ONE_MINUS_SRC_ALPHA
|-
| 0x4
| GL_SRC0_RGB
|-
| 0x5
| ?
|-
| 0x6
| GL_SRC_COLOR
|-
| 0x7
| GL_SRC_COLOR
|-
| 0x8
| GL_SRC1_RGB
|-
| 0x9
| ?
|-
| 0xA
| GL_SRC_COLOR
|-
| 0xB
| GL_SRC_COLOR
|-
| 0xC
| GL_SRC2_RGB
|-
| 0xD
| ?
|}
==== Param1 field1 values for CmdID 0x802F00C0 ====
{| class="wikitable" border="1"
!  Value
!  GL type
|-
| 0x0
| GL_SRC_ALPHA
|-
| 0x1
| GL_ONE_MINUS_SRC_ALPHA
|-
| 0x2
| GL_SRC0_RGB
|-
| 0x3
| ?
|-
| 0x4
| GL_SRC1_RGB
|-
| 0x5
| ?
|-
| 0x6
| GL_SRC2_RGB
|-
| 0x7
| ?
|}
==== Param2 format for CmdID 0x802F00C0 ====
{| class="wikitable" border="1"
!  Bit
!  Description
|-
| 15-0
| See below field0 values.
|-
| 31-16
| See below field1 values.
|}
==== Param2 field0 values for CmdID 0x802F00C0 ====
{| class="wikitable" border="1"
!  Value
!  GL type
|-
| 0x0
| GL_REPLACE
|-
| 0x1
| GL_MODULATE
|-
| 0x2
| GL_ADD
|-
| 0x3
| GL_ADD_SIGNED
|-
| 0x4
| GL_INTERPOLATE
|-
| 0x5
| GL_SUBTRACT
|-
| 0x6
| GL_DOT3_RGB
|-
| 0x7
| GL_DOT3_RGBA
|-
| 0x8
| ?
|-
| 0x9
| ?
|}
==== Param2 field1 values for CmdID 0x802F00C0 ====
{| class="wikitable" border="1"
!  Value
!  GL type
|-
| 0x0
| GL_REPLACE
|-
| 0x1
| GL_MODULATE
|-
| 0x2
| GL_ADD
|-
| 0x3
| GL_ADD_SIGNED
|-
| 0x4
| GL_INTERPOLATE
|-
| 0x5
| GL_SUBTRACT
|-
| 0x6
| GL_REPLACE
|-
| 0x7
| GL_DOT3_RGB
|-
| 0x8
| ?
|-
| 0x9
| ?
|}
|}