GPU/Internal Registers: Difference between revisions

Steveice10 (talk | contribs)
mNo edit summary
Steveice10 (talk | contribs)
Line 4,701: Line 4,701:
|-
|-
| 0-3
| 0-3
| unsigned, [[GPU_Textures#Texture_color_types|Format]]
| unsigned, Format
|}
|}


This register is used to set a texture unit's data format.
This register is used to set a texture unit's data format.
Format values:
{| class="wikitable" border="1"
!  Value
!  Description
!  GL Format
!  GL Data Type
|-
| 0x0
| RGBA8888
| GL_RGBA
| GL_UNSIGNED_BYTE
|-
| 0x1
| RGB888
| GL_RGB
| GL_UNSIGNED_BYTE
|-
| 0x2
| RGBA5551
| GL_RGBA
| GL_UNSIGNED_SHORT_5_5_5_1
|-
| 0x3
| RGB565
| GL_RGB
| GL_UNSIGNED_SHORT_5_6_5
|-
| 0x4
| RGBA4444
| GL_RGBA
| GL_UNSIGNED_SHORT_4_4_4_4
|-
| 0x5
| IA8
| GL_LUMINANCE_ALPHA
| GL_UNSIGNED_BYTE
|-
| 0x6
| HILO8
|
|
|-
| 0x7
| I8
| GL_LUMINANCE
| GL_UNSIGNED_BYTE
|-
| 0x8
| A8
| GL_ALPHA
| GL_UNSIGNED_BYTE
|-
| 0x9
| IA44
| GL_LUMINANCE_ALPHA
| GL_UNSIGNED_BYTE_4_4_EXT
|-
| 0xA
| I4
|
|
|-
| 0xB
| A4
| GL_ALPHA
| GL_UNSIGNED_NIBBLE_EXT
|-
| 0xC
| ETC1
| GL_ETC1_RGB8_OES
|
|-
| 0xD
| ETC1A4
|
|
|}


=== GPUREG_LIGHTING_ENABLE0 ===
=== GPUREG_LIGHTING_ENABLE0 ===