Crate wiiu_swizzle

Source
Expand description

§wiiu_swizzle

wiiu_swizzle is a CPU implementation of memory tiling for texture surfaces for the Wii U GPU hardware.

Most applications should construct a Gx2Surface and use Gx2Surface::deswizzle to correctly handle offsets and parameter changes for different mip levels.

Structs§

Gx2Surface
A view over Wii U GX2 texture surface to simplify swizzling operations.

Enums§

AaMode
GX2AAMode for the number of samples
SurfaceDim
GX2SurfaceDim for the dimensionality of the texture surface
SurfaceFormat
GX2SurfaceFormat for the format of the image data
SwizzleError
Errors than can occur while converting between tiled and linear memory layouts.
TileMode
GX2TileMode affecting the tiled memory layout and size

Functions§

deswizzle_mipmap
Convert the tiled data in source to a combined linear vector.
swizzle_mipmap
Convert the linear data in source to a combined tiled vector.