![]() |
Twilight Princess
Remastered version of the GameCube game
|
Classes | |
class | Flags |
class | GX2Surface |
class | surfaceIn |
class | surfaceOut |
class | TileInfo |
Static Public Member Functions | |
static GX2SurfaceFormat | ConvertToGx2Format (TEX_FORMAT texFormat) |
static void | Debug (surfaceOut surf) |
static GX2Surface | CreateGx2Texture (byte[] imageData, string Name, uint TileMode, uint AAMode, uint Width, uint Height, uint Depth, uint Format, uint swizzle, uint SurfaceDim, uint MipCount) |
static uint[] | CreateRegisters (GX2Surface surface) |
static uint[] | GenerateMipOffsets (GX2Surface tex) |
static byte[] | Decode (GX2Surface tex, int ArrayIndex=-1, int MipIndex=-1, string DebugTextureName="") |
static List< List< byte[]> > | Decode (GX2Surface tex, string DebugTextureName="") |
static bool | IsFormatBCN (GX2SurfaceFormat Format) |
static byte[] | deswizzle (uint width, uint height, uint depth, uint height_, uint format_, uint aa, uint use, uint tileMode, uint swizzle_, uint pitch, uint bpp, uint slice, uint sample, byte[] data) |
static byte[] | swizzle (uint width, uint height, uint depth, uint height_, uint format_, uint aa, uint use, uint tileMode, uint swizzle_, uint pitch, uint bpp, uint slice, uint sample, byte[] data) |
static uint | surfaceGetBitsPerPixel (uint surfaceFormat) |
static uint | nextPow2 (uint dim) |
static uint | getDefaultGX2TileMode (uint dim, uint width, uint height, uint depth, uint format_, uint aa, uint use) |
static uint | computeSurfaceMipLevelTileMode (uint baseTileMode, uint bpp, uint level, uint width, uint height, uint numSlices, uint numSamples, uint isDepth, uint noRecursive) |
static surfaceOut | getSurfaceInfo (GX2SurfaceFormat surfaceFormat, uint surfaceWidth, uint surfaceHeight, uint surfaceDepth, uint surfaceDim, uint surfaceTileMode, uint surfaceAA, int level) |
Gets the surface info of a GX2 texture. | |
static byte[] | CombineByteArray (params byte[][] arrays) |
Static Public Attributes | |
const uint | SwizzleMask = 0xFF00FF |
static uint | expPitch = 0 |
static uint | expHeight = 0 |
static uint | expNumSlices = 0 |
Static Private Member Functions | |
static int | RoundUp (int X, int Y) |
static uint | RoundUp (uint X, uint Y) |
static byte[] | SubArray (byte[] data, int offset, int length) |
static uint | DIV_ROUND_UP (uint n, uint d) |
static byte[] | swizzleSurf (uint width, uint height, uint depth, uint format, uint aa, uint use, uint tileMode, uint swizzle_, uint pitch, uint bitsPerPixel, uint slice, uint sample, byte[] data, int swizzle) |
static uint | GX2TileModeToAddrTileMode (uint tileMode) |
static uint | computeSurfaceThickness (AddrTileMode tileMode) |
static uint | computePixelIndexWithinMicroTile (uint x, uint y, uint z, uint bpp, AddrTileMode tileMode, bool IsDepth) |
static uint | computePipeFromCoordWoRotation (uint x, uint y) |
static uint | computeBankFromCoordWoRotation (uint x, uint y) |
static uint | computeSurfaceRotationFromTileMode (AddrTileMode tileMode) |
static uint | isThickMacroTiled (AddrTileMode tileMode) |
static uint | isBankSwappedTileMode (AddrTileMode tileMode) |
static uint | computeMacroTileAspectRatio (AddrTileMode tileMode) |
static uint | computeSurfaceBankSwappedWidth (AddrTileMode tileMode, uint bpp, uint numSamples, uint pitch) |
static ulong | computeSurfaceAddrFromCoordLinear (uint x, uint y, uint slice, uint sample, uint bpp, uint pitch, uint height, uint numSlices) |
static ulong | computeSurfaceAddrFromCoordMicroTiled (uint x, uint y, uint slice, uint bpp, uint pitch, uint height, AddrTileMode tileMode, bool IsDepth) |
static ulong | computeSurfaceAddrFromCoordMacroTiled (uint x, uint y, uint slice, uint sample, uint bpp, uint pitch, uint height, uint numSamples, AddrTileMode tileMode, bool IsDepth, uint pipeSwizzle, uint bankSwizzle) |
static uint | computeSurfaceTileSlices (uint tileMode, uint bpp, uint numSamples) |
static uint | ComputeSurfaceInfoEx () |
static uint[] | computeSurfaceInfoLinear (uint tileMode, uint bpp, uint numSamples, uint pitch, uint height, uint numSlices, uint mipLevel, uint padDims, Flags flags) |
static Tuple< uint, uint, uint > | computeSurfaceAlignmentsLinear (uint tileMode, uint bpp, Flags flags) |
static uint | convertToNonBankSwappedMode (AddrTileMode tileMode) |
static void | computeSurfaceInfo (surfaceIn aSurfIn, surfaceOut pSurfOut) |
static uint[] | computeSurfaceInfoMicroTiled (uint tileMode, uint bpp, uint numSamples, uint pitch, uint height, uint numSlices, uint mipLevel, uint padDims, Flags flags) |
static Tuple< uint, uint, uint > | padDimensions (uint tileMode, uint padDims, uint isCube, uint pitchAlign, uint heightAlign, uint sliceAlign) |
static uint[] | computeSurfaceInfoMacroTiled (uint tileMode, uint baseTileMode, uint bpp, uint numSamples, uint pitch, uint height, uint numSlices, uint mipLevel, uint padDims, Flags flags) |
static Tuple< uint, uint, uint > | computeSurfaceAlignmentsMicroTiled (uint tileMode, uint bpp, Flags flags, uint numSamples) |
static Tuple< uint, uint, uint, uint, uint > | computeSurfaceAlignmentsMacroTiled (uint tileMode, uint bpp, Flags flags, uint numSamples) |
static uint | adjustPitchAlignment (Flags flags, uint pitchAlign) |
static uint | adjustSurfaceInfo (uint elemMode, uint expandX, uint expandY, uint bpp, uint width, uint height) |
static void | computeMipLevel () |
static uint | restoreSurfaceInfo (uint elemMode, uint expandX, uint expandY, uint bpp) |
static uint | hwlComputeMipLevel () |
static uint | powTwoAlign (uint x, uint align) |
Static Private Attributes | |
static surfaceIn | pIn = new surfaceIn() |
static surfaceOut | pOut = new surfaceOut() |
static bool | DebugSurface = false |
static byte[] | formatHwInfo |
static byte[] | formatExInfo |
static byte[] | bankSwapOrder = { 0, 1, 3, 2, 6, 7, 5, 4, 0, 0 } |
enum Toolbox.Library.GX2.GX2SurfaceUse : uint |
enum Toolbox.Library.GX2.TEX_FORMAT : uint |
|
staticprivate |
|
staticprivate |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
staticprivate |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticprivate |
|
static |
|
static |
|
static |
Gets the surface info of a GX2 texture.
surfaceFormat | The GX2SurfaceFormat of the surface. |
surfaceWidth | The width of the surface. |
surfaceHeight | The height of the surface. |
surfaceDepth | The depth of the surface. |
surfaceDim | The <see cref="GX2SurfaceDim"/ of the surface. |
surfaceTileMode | The <see cref="GX2TileMode"/ of the surface. |
surfaceAA | The <see cref="GX2AAMode"/ of the surface. |
level | The mip level of which the info will be calculated for (first mipmap corresponds to value 1 |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
staticprivate |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
static |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |