DKC:TF > Texture File (TXTR)

Meta data: NTextureFormat::SMetaData

TypeDescription
CFormDescriptorForm descriptor

TXTR Form

TypeDescription
CChunkDescriptorHEAD chunk (NTextureFormat::STextureHeader)
CChunkDescriptorGPU chunk. This chunk contains the texture buffers

NTextureFormat::STextureHeader

TypeDescription
Uint32Type
Uint32Format
Uint32Width
Uint32Height
Uint32Depth
Uint32Tile mode
Uint32Swizzle
List<Uint32>Mipmap sizes
NTextureFormat::STextureSamplerDataSampler data

NTextureFormat::STextureSamplerData

TypeDescription
Uint32Flags (always 0)
Uint8Texture filter
Uint8Texture wrap (x)
Uint8Texture wrap (y)
Uint8Texture wrap (z)

Texture Type

ETextureTypeGX2SurfaceDim
0GX2_SURFACE_DIM_TEXTURE_1D
1GX2_SURFACE_DIM_TEXTURE_2D
2GX2_SURFACE_DIM_TEXTURE_3D
3GX2_SURFACE_DIM_TEXTURE_CUBE
4GX2_SURFACE_DIM_TEXTURE_1D_ARRAY
5GX2_SURFACE_DIM_TEXTURE_2D_ARRAY
6GX2_SURFACE_DIM_TEXTURE_2D_MSAA
7GX2_SURFACE_DIM_TEXTURE_2D_MSAA_ARRAY

Texture Format

ETextureFormatGX2SurfaceFormat
0GX2_SURFACE_FORMAT_UNORM_R8
1GX2_SURFACE_FORMAT_SNORM_R8
2GX2_SURFACE_FORMAT_UINT_R8
3GX2_SURFACE_FORMAT_SINT_R8
4GX2_SURFACE_FORMAT_UNORM_R16
5GX2_SURFACE_FORMAT_SNORM_R16
6GX2_SURFACE_FORMAT_UINT_R16
7GX2_SURFACE_FORMAT_SINT_R16
8GX2_SURFACE_FORMAT_FLOAT_R16
9GX2_SURFACE_FORMAT_UINT_R32
10GX2_SURFACE_FORMAT_SINT_R32
11GX2_SURFACE_FORMAT_INVALID
12GX2_SURFACE_FORMAT_UNORM_R8_G8_B8_A8
13GX2_SURFACE_FORMAT_SRGB_R8_G8_B8_A8
14GX2_SURFACE_FORMAT_FLOAT_R16_G16_B16_A16
15GX2_SURFACE_FORMAT_FLOAT_R32_G32_B32_A32
16GX2_SURFACE_FORMAT_UNORM_R16
17GX2_SURFACE_FORMAT_UNORM_R16
18GX2_SURFACE_FORMAT_UNORM_R24_X8
19GX2_SURFACE_FORMAT_FLOAT_R32
20GX2_SURFACE_FORMAT_UNORM_BC1
21GX2_SURFACE_FORMAT_SRGB_BC1
22GX2_SURFACE_FORMAT_UNORM_BC2
23GX2_SURFACE_FORMAT_SRGB_BC2
24GX2_SURFACE_FORMAT_UNORM_BC3
25GX2_SURFACE_FORMAT_SRGB_BC3
26GX2_SURFACE_FORMAT_UNORM_BC4
27GX2_SURFACE_FORMAT_SNORM_BC4
28GX2_SURFACE_FORMAT_UNORM_BC5
29GX2_SURFACE_FORMAT_SNORM_BC5
30GX2_SURFACE_FORMAT_FLOAT_R11_G11_B10
31GX2_SURFACE_FORMAT_FLOAT_R32
32GX2_SURFACE_FORMAT_FLOAT_R16_G16
33GX2_SURFACE_FORMAT_UNORM_R8_G8

NTextureFormat::SMetaData

TypeDescription
Uint32Unknown (always 4)
Uint32Alloc category
Uint32Filesize without GPU chunk
Uint32Required data alignment
Uint32Compressed data offset
Uint32Compressed data size
List<NTextureFormat::SCompressedBufferInfo>Buffer info

NTextureFormat::SCompressedBufferInfo

TypeDescription
Uint32Decompressed size
Uint32Compressed size
Uint32Offset