wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Functions
Surface
Collaboration diagram for Surface:

Data Structures

struct  GX2Surface
 
struct  GX2DepthBuffer
 
struct  GX2ColorBuffer
 
struct  GX2Rect
 
struct  GX2Point
 
union  GX2Surface.__unnamed21__
 

Typedefs

typedef struct GX2Surface GX2Surface
 
typedef struct GX2DepthBuffer GX2DepthBuffer
 
typedef struct GX2ColorBuffer GX2ColorBuffer
 
typedef struct GX2Rect GX2Rect
 
typedef struct GX2Point GX2Point
 

Functions

void GX2CalcSurfaceSizeAndAlignment (GX2Surface *surface)
 
void GX2CalcDepthBufferHiZInfo (GX2DepthBuffer *depthBuffer, uint32_t *outSize, uint32_t *outAlignment)
 
void GX2CalcColorBufferAuxInfo (GX2ColorBuffer *surface, uint32_t *outSize, uint32_t *outAlignment)
 
void GX2SetColorBuffer (const GX2ColorBuffer *colorBuffer, GX2RenderTarget target)
 
void GX2SetDepthBuffer (const GX2DepthBuffer *depthBuffer)
 
void GX2InitColorBufferRegs (GX2ColorBuffer *colorBuffer)
 
void GX2InitDepthBufferRegs (GX2DepthBuffer *depthBuffer)
 
void GX2InitDepthBufferHiZEnable (GX2DepthBuffer *depthBuffer, BOOL enable)
 
uint32_t GX2GetSurfaceSwizzle (const GX2Surface *surface)
 
void GX2SetSurfaceSwizzle (GX2Surface *surface, uint32_t swizzle)
 
void GX2CopySurface (const GX2Surface *src, uint32_t srcLevel, uint32_t srcDepth, GX2Surface *dst, uint32_t dstLevel, uint32_t dstDepth)
 
void GX2CopySurfaceEx (const GX2Surface *src, uint32_t srcLevel, uint32_t srcDepth, GX2Surface *dst, uint32_t dstLevel, uint32_t dstDepth, uint32_t numRects, GX2Rect *srcRects, GX2Point *dstPoints)
 
void GX2ResolveAAColorBuffer (const GX2ColorBuffer *srcColorBuffer, GX2Surface *dstSurface, uint32_t dstMip, uint32_t dstSlice)
 

Detailed Description


Data Structure Documentation

◆ GX2Surface

struct GX2Surface

Definition at line 22 of file surface.h.

Data Fields
GX2SurfaceDim dim
uint32_t width
uint32_t height
uint32_t depth
uint32_t mipLevels
GX2SurfaceFormat format
GX2AAMode aa
union GX2Surface __unnamed__
uint32_t imageSize
void * image
uint32_t mipmapSize
void * mipmaps
GX2TileMode tileMode
uint32_t swizzle
uint32_t alignment
uint32_t pitch
uint32_t mipLevelOffset[13]

◆ GX2DepthBuffer

struct GX2DepthBuffer

Definition at line 65 of file surface.h.

Data Fields
GX2Surface surface
uint32_t viewMip
uint32_t viewFirstSlice
uint32_t viewNumSlices
void * hiZPtr
uint32_t hiZSize
float depthClear
uint32_t stencilClear
uint32_t regs[7]

◆ GX2ColorBuffer

struct GX2ColorBuffer

Definition at line 89 of file surface.h.

Data Fields
GX2Surface surface
uint32_t viewMip
uint32_t viewFirstSlice
uint32_t viewNumSlices
void * aaBuffer
uint32_t aaSize
uint32_t regs[5]

◆ GX2Rect

struct GX2Rect

Definition at line 109 of file surface.h.

Data Fields
int32_t left
int32_t top
int32_t right
int32_t bottom

◆ GX2Point

struct GX2Point

Definition at line 122 of file surface.h.

Data Fields
int32_t x
int32_t y

◆ GX2Surface.__unnamed21__

union GX2Surface.__unnamed21__

Definition at line 31 of file surface.h.

Data Fields
GX2SurfaceUse use
GX2RResourceFlags resourceFlags

Typedef Documentation

◆ GX2Surface

typedef struct GX2Surface GX2Surface

Definition at line 1 of file surface.h.

◆ GX2DepthBuffer

Definition at line 1 of file surface.h.

◆ GX2ColorBuffer

Definition at line 1 of file surface.h.

◆ GX2Rect

typedef struct GX2Rect GX2Rect

Definition at line 1 of file surface.h.

◆ GX2Point

typedef struct GX2Point GX2Point

Definition at line 1 of file surface.h.

Function Documentation

◆ GX2CalcSurfaceSizeAndAlignment()

void GX2CalcSurfaceSizeAndAlignment ( GX2Surface surface)

◆ GX2CalcDepthBufferHiZInfo()

void GX2CalcDepthBufferHiZInfo ( GX2DepthBuffer depthBuffer,
uint32_t *  outSize,
uint32_t *  outAlignment 
)

◆ GX2CalcColorBufferAuxInfo()

void GX2CalcColorBufferAuxInfo ( GX2ColorBuffer surface,
uint32_t *  outSize,
uint32_t *  outAlignment 
)

◆ GX2SetColorBuffer()

void GX2SetColorBuffer ( const GX2ColorBuffer colorBuffer,
GX2RenderTarget  target 
)

◆ GX2SetDepthBuffer()

void GX2SetDepthBuffer ( const GX2DepthBuffer depthBuffer)

◆ GX2InitColorBufferRegs()

void GX2InitColorBufferRegs ( GX2ColorBuffer colorBuffer)

◆ GX2InitDepthBufferRegs()

void GX2InitDepthBufferRegs ( GX2DepthBuffer depthBuffer)

◆ GX2InitDepthBufferHiZEnable()

void GX2InitDepthBufferHiZEnable ( GX2DepthBuffer depthBuffer,
BOOL  enable 
)

◆ GX2GetSurfaceSwizzle()

uint32_t GX2GetSurfaceSwizzle ( const GX2Surface surface)

◆ GX2SetSurfaceSwizzle()

void GX2SetSurfaceSwizzle ( GX2Surface surface,
uint32_t  swizzle 
)

◆ GX2CopySurface()

void GX2CopySurface ( const GX2Surface src,
uint32_t  srcLevel,
uint32_t  srcDepth,
GX2Surface dst,
uint32_t  dstLevel,
uint32_t  dstDepth 
)

◆ GX2CopySurfaceEx()

void GX2CopySurfaceEx ( const GX2Surface src,
uint32_t  srcLevel,
uint32_t  srcDepth,
GX2Surface dst,
uint32_t  dstLevel,
uint32_t  dstDepth,
uint32_t  numRects,
GX2Rect srcRects,
GX2Point dstPoints 
)

◆ GX2ResolveAAColorBuffer()

void GX2ResolveAAColorBuffer ( const GX2ColorBuffer srcColorBuffer,
GX2Surface dstSurface,
uint32_t  dstMip,
uint32_t  dstSlice 
)