TXTR (Tropical Freeze): Difference between revisions

Jump to navigation Jump to search
>Aruki
>Aruki
 
(3 intermediate revisions by the same user not shown)
Line 76: Line 76:
| ''Mipmap Count''
| ''Mipmap Count''
| '''Mipmap Sizes'''
| '''Mipmap Sizes'''
| The size of the base level mipmap is calculated with padding and alignment taken into account. The size of subsequent mipmaps is calculated as Width*Height*Depth*BPP/8. This does '''not''' take padding and alignment into account so it cannot be used to accurately locate and read mipmap data in the file. The offset and size needs to be calculated from the other parameters in the header. The game calculates this data by calling GX2CalcSurfaceSizeAndAlignment.
| The size of the base level mipmap is calculated with padding and alignment taken into account. The size of subsequent mipmaps is calculated as Width*Height*Depth*BPP/8. This does '''not''' take padding and alignment into account, and so it does not accurately reflect the amount of space the mipmap takes up in the file, and it cannot be used to accurately locate and read mipmap data. The offset and size needs to be calculated from the other parameters in the header. The game calculates this data by calling GX2CalcSurfaceSizeAndAlignment.
|-
|-
| {{none}}
| {{none}}
Line 115: Line 115:
{| class="wikitable"
{| class="wikitable"
! ID
! ID
! GX2SurfaceDim
! Type
|-
|-
| 0
| 0
| GX2_SURFACE_DIM_1D
| 1D Texture
|-
|-
| 1
| 1
| GX2_SURFACE_DIM_2D
| 2D Texture
|-
|-
| 2
| 2
| GX2_SURFACE_DIM_3D
| 3D Texture
|-
|-
| 3
| 3
| GX2_SURFACE_DIM_CUBE
| Cube Texture
|-
|-
| 4
| 4
| GX2_SURFACE_DIM_1D_ARRAY
| 1D Texture Array
|-
|-
| 5
| 5
| GX2_SURFACE_DIM_2D_ARRAY
| 2D Texture Array
|-
|-
| 6
| 6
| GX2_SURFACE_DIM_2D_MSAA
| Multisampled 2D Texture
|-
|-
| 7
| 7
| GX2_SURFACE_DIM_2D_MSAA_ARRAY
| Multisampled 2D Texture Array
|}
|}


Line 302: Line 302:
| 1
| 1
| {{unknown|Unknown}}
| {{unknown|Unknown}}
|  
| Always 4
|-
|-
| 0x4
| 0x4
Line 319: Line 319:
| u32
| u32
| 1
| 1
| {{unknown|Unknown}}
| '''Base Alignment'''
|  
| Alignment of the surface image data
|-
|-
| 0x10
| 0x10
Anonymous user

Navigation menu