texture_decode_ps2
Decode PS2 GS swizzled or linear textures (PSMCT32/16/16S, PSMT8/4) with optional CSM2 CLUT into RGBA and PNG for inspection.
Instructions
Decode a PS2 GS texture (PSMCT32/16/16S, PSMT8/4) from swizzled or linear data, optionally with a CSM2 CLUT, into RGBA and PNG.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| psm | Yes | ||
| width | Yes | ||
| height | Yes | ||
| clutHex | No | 32-bit RGBA CLUT entries as hex (required for PSMT8/PSMT4) | |
| dataHex | Yes | Texture bytes as hex | |
| swizzled | No | Treat input as GS VRAM (default true) | |
| clutStorage | No | CLUT storage mode (default CSM2; CSM1 is refused) |