texture_inspect
Calculate Nintendo 64 texture metadata from format and size codes, dimensions, and available bytes to determine format, size, required buffer bytes, and completeness.
Instructions
Calculate N64 texture metadata (format, size, required buffer bytes, completeness) based on format code, size code, width and height.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Texture width in texels | |
| height | Yes | Texture height in texels | |
| sizeCode | Yes | 0=4-bit, 1=8-bit, 2=16-bit, 3=32-bit | |
| formatCode | Yes | 0=RGBA, 1=YUV, 2=CI, 3=IA, 4=I | |
| availableBytes | Yes | Number of bytes in source buffer | |
| paletteEntries | No | For CI textures, number of palette colors |