Editing GXT

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 62: Line 62:
| 0x08 || 0x04 || 01 00 00 00 || 1 || Number of textures embedded
| 0x08 || 0x04 || 01 00 00 00 || 1 || Number of textures embedded
|-
|-
| 0x0C || 0x04 || 40 00 00 00 || 0x40 || Offset of the texture data/ header size
| 0x0C || 0x04 || 40 00 00 00 || 40 || Offset of the texture data/ header size
|-
|-
| 0x10 || 0x04 || 00 00 02 00 || 0x20000 || Total size of the Textures
| 0x10 || 0x04 || 80 00 00 00 || 80 || Total size of the Textures
|-
|-
| 0x14 || 0x04 || 00 00 00 00 || 0 || Number of 16 entry palettes (P4)
| 0x14 || 0x04 || 00 00 00 00 || 0 || Number of 16 entry palettes (P4)
Line 74: Line 74:
|colspan="5" style="text-align:center; background-color:lightblue;" | <span style="color:black;">GXT specification per texture</span>
|colspan="5" style="text-align:center; background-color:lightblue;" | <span style="color:black;">GXT specification per texture</span>
|-
|-
| 0x20 || 0x04 || 40 00 00 00 || 0x40 || Offset of the single texture data
| 0x20 || 0x04 || 40 00 00 00 || 40 || Offset of the single texture data
|-
|-
| 0x24 || 0x04 || 00 00 02 00 || 0x20000 || Size of the single texture data.
| 0x24 || 0x04 || 80 00 00 00 || 80 || Size of the single texture data.
|-
|-
| 0x28 || 0x04 || FF FF FF FF || - || Index of the palette
| 0x28 || 0x04 || FF FF FF FF || - || Index of the palette
Line 84: Line 84:
| 0x30 || 0x04 || 00 00 00 00 || - || Texture Type
| 0x30 || 0x04 || 00 00 00 00 || - || Texture Type
|-
|-
| 0x34 || 0x04 || 00 00 00 85 || 0x85000000 (DXT1) || Texture Base Format
| 0x34 || 0x04 || - || - || Texture format
|-
|-
| 0x38 || 0x02  || 00 02 || 0x200 (512) || Width
| 0x38 || 0x02  || - || - || Width
|-
|-
| 0x3A || 0x02  || 00 02 || 0x200 (512) || Height
| 0x3A || 0x02  || - || - || Height
|-
|-
| 0x3C || 0x02 || - || - || Mipmaps
| 0x3C || 0x02 || - || - || Mipmaps
Line 95: Line 95:
|-
|-
|}
|}
=== Texture type ===
{| class="wikitable" style="text-align: center;"
|-
| style="background-color:#475854; color:#FFFFFF;" |'''Name'''
| style="background-color:#475854; color:#FFFFFF;" |'''Value (h)'''
| style="background-color:#475854; color:#FFFFFF;" |'''Description'''
|-
|colspan="5" style="text-align:center; background-color:lightblue;" | <span style="color:black;">Texture Type</span>
|-
| SWIZZLED || 0x00 ||
|-
| CUBE || 0x40 ||
|-
| LINEAR || 0x60 ||
|-
| TILED || 0x80 ||
|-
| LINEAR STRIDED || 0x0C ||
|-
|}
=== Texture Base Format ===
{| class="wikitable" style="text-align: center;"
|-
| style="background-color:#475854; color:#FFFFFF;" |'''Name'''
| style="background-color:#475854; color:#FFFFFF;" |'''Value (h)'''
| style="background-color:#475854; color:#FFFFFF;" |'''Description'''
|-
|colspan="5" style="text-align:center; background-color:lightblue;" | <span style="color:black;">Texture Base Format</span>
|-
| PVRT2BPP || 00 00 00 80 || PVR 2 bits per pixel mode
|-
| PVRT4BPP || 00 00 00 81 || PVR 4 bits per pixel mode
|-
| PVRTII2BPP || 00 00 00 82 || PVR II 2 bits per pixel mode
|-
| PVRTII4BPP || 00 00 00 83 || PVR II  4 bits per pixel mode
|-
| UBC1 || 00 00 00 85 || DXT1 4 bits per pixel, no alpha
|-
| UBC2 || 00 00 00 86 || DXT3 8 bits per pixel
|-
| UBC3 || 00 00 00 87 || DXT5 8 bits per pixel
|-
| || 10 00 04 00 || 1555
|-
| || 00 00 00 10 || ARGB4444
|-
| || 00 10 00 0C || ARGB8888
|-
| || 00 50 00 0C || XRGB888
|-
| || 00 10 00 98 || RGB888
|-
| || 00 10 00 05 || RGB565
|-
| || 00 50 00 04 || RGB555
|-
| || 00 10 00 02 || RGB4444
|-
|}
*[[PVR|PVR file format]]
*[[DXT|DXT file format]]
Please note that all contributions to Vita Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see Vita Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)

Template used on this page: