WUT  0.1
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
Surface

Data Structures

struct  GX2Surface
 
struct  GX2DepthBuffer
 
struct  GX2ColorBuffer
 

Typedefs

typedef struct GX2Surface GX2Surface
 
typedef struct GX2DepthBuffer GX2DepthBuffer
 
typedef struct GX2ColorBuffer GX2ColorBuffer
 
typedef enum GX2AAMode GX2AAMode
 
typedef enum GX2SurfaceUse GX2SurfaceUse
 
typedef enum GX2RResourceFlags GX2RResourceFlags
 
typedef enum GX2TileMode GX2TileMode
 
typedef enum GX2RenderTarget GX2RenderTarget
 

Enumerations

enum  GX2SurfaceDim
 
enum  GX2SurfaceFormat
 
enum  GX2AAMode
 
enum  GX2SurfaceUse
 
enum  GX2RResourceFlags
 
enum  GX2TileMode
 
enum  GX2RenderTarget
 

Functions

void GX2CalcSurfaceSizeAndAlignment (GX2Surface *surface)
 
void GX2CalcDepthBufferHiZInfo (GX2DepthBuffer *depthBuffer, uint32_t *outSize, uint32_t *outAlignment)
 
void GX2SetColorBuffer (GX2ColorBuffer *colorBuffer, GX2RenderTarget target)
 
void GX2SetDepthBuffer (GX2DepthBuffer *depthBuffer)
 
void GX2InitColorBufferRegs (GX2ColorBuffer *colorBuffer)
 
void GX2InitDepthBufferRegs (GX2DepthBuffer *depthBuffer)
 
void GX2InitDepthBufferHiZEnable (GX2DepthBuffer *depthBuffer, BOOL enable)
 
uint32_t GX2GetSurfaceSwizzle (GX2Surface *surface)
 
void GX2SetSurfaceSwizzle (GX2Surface *surface, uint32_t swizzle)
 
void GX2CopySurface (GX2Surface *src, uint32_t srcLevel, uint32_t srcDepth, GX2Surface *dst, uint32_t dstLevel, uint32_t dstDepth)
 

Detailed Description

Typedef Documentation

typedef struct GX2Surface GX2Surface

Definition at line 14 of file surface.h.

Definition at line 15 of file surface.h.

Definition at line 16 of file surface.h.

typedef enum GX2AAMode GX2AAMode
typedef enum GX2TileMode GX2TileMode

Enumeration Type Documentation

Enumerator
GX2_SURFACE_DIM_TEXTURE_1D 
GX2_SURFACE_DIM_TEXTURE_2D 
GX2_SURFACE_DIM_TEXTURE_3D 
GX2_SURFACE_DIM_TEXTURE_CUBE 
GX2_SURFACE_DIM_TEXTURE_1D_ARRAY 
GX2_SURFACE_DIM_TEXTURE_2D_ARRAY 
GX2_SURFACE_DIM_TEXTURE_2D_MSAA 
GX2_SURFACE_DIM_TEXTURE_2D_MSAA_ARRAY 

Definition at line 18 of file surface.h.

Enumerator
GX2_SURFACE_FORMAT_INVALID 
GX2_SURFACE_FORMAT_UNORM_R4_G4 
GX2_SURFACE_FORMAT_UNORM_R4_G4_B4_A4 
GX2_SURFACE_FORMAT_UNORM_R8 
GX2_SURFACE_FORMAT_UNORM_R8_G8 
GX2_SURFACE_FORMAT_UNORM_R8_G8_B8_A8 
GX2_SURFACE_FORMAT_UNORM_R16 
GX2_SURFACE_FORMAT_UNORM_R16_G16 
GX2_SURFACE_FORMAT_UNORM_R16_G16_B16_A16 
GX2_SURFACE_FORMAT_UNORM_R5_G6_B5 
GX2_SURFACE_FORMAT_UNORM_R5_G5_B5_A1 
GX2_SURFACE_FORMAT_UNORM_A1_B5_G5_R5 
GX2_SURFACE_FORMAT_UNORM_R24_X8 
GX2_SURFACE_FORMAT_UNORM_A2_B10_G10_R10 
GX2_SURFACE_FORMAT_UNORM_R10_G10_B10_A2 
GX2_SURFACE_FORMAT_UNORM_BC1 
GX2_SURFACE_FORMAT_UNORM_BC2 
GX2_SURFACE_FORMAT_UNORM_BC3 
GX2_SURFACE_FORMAT_UNORM_BC4 
GX2_SURFACE_FORMAT_UNORM_BC5 
GX2_SURFACE_FORMAT_UNORM_NV12 
GX2_SURFACE_FORMAT_UINT_R8 
GX2_SURFACE_FORMAT_UINT_R8_G8 
GX2_SURFACE_FORMAT_UINT_R8_G8_B8_A8 
GX2_SURFACE_FORMAT_UINT_R16 
GX2_SURFACE_FORMAT_UINT_R16_G16 
GX2_SURFACE_FORMAT_UINT_R16_G16_B16_A16 
GX2_SURFACE_FORMAT_UINT_R32 
GX2_SURFACE_FORMAT_UINT_R32_G32 
GX2_SURFACE_FORMAT_UINT_R32_G32_B32_A32 
GX2_SURFACE_FORMAT_UINT_A2_B10_G10_R10 
GX2_SURFACE_FORMAT_UINT_R10_G10_B10_A2 
GX2_SURFACE_FORMAT_UINT_X24_G8 
GX2_SURFACE_FORMAT_UINT_G8_X24 
GX2_SURFACE_FORMAT_SNORM_R8 
GX2_SURFACE_FORMAT_SNORM_R8_G8 
GX2_SURFACE_FORMAT_SNORM_R8_G8_B8_A8 
GX2_SURFACE_FORMAT_SNORM_R16 
GX2_SURFACE_FORMAT_SNORM_R16_G16 
GX2_SURFACE_FORMAT_SNORM_R16_G16_B16_A16 
GX2_SURFACE_FORMAT_SNORM_R10_G10_B10_A2 
GX2_SURFACE_FORMAT_SNORM_BC4 
GX2_SURFACE_FORMAT_SNORM_BC5 
GX2_SURFACE_FORMAT_SINT_R8 
GX2_SURFACE_FORMAT_SINT_R8_G8 
GX2_SURFACE_FORMAT_SINT_R8_G8_B8_A8 
GX2_SURFACE_FORMAT_SINT_R16 
GX2_SURFACE_FORMAT_SINT_R16_G16 
GX2_SURFACE_FORMAT_SINT_R16_G16_B16_A16 
GX2_SURFACE_FORMAT_SINT_R32 
GX2_SURFACE_FORMAT_SINT_R32_G32 
GX2_SURFACE_FORMAT_SINT_R32_G32_B32_A32 
GX2_SURFACE_FORMAT_SINT_R10_G10_B10_A2 
GX2_SURFACE_FORMAT_SRGB_R8_G8_B8_A8 
GX2_SURFACE_FORMAT_SRGB_BC1 
GX2_SURFACE_FORMAT_SRGB_BC2 
GX2_SURFACE_FORMAT_SRGB_BC3 
GX2_SURFACE_FORMAT_FLOAT_R32 
GX2_SURFACE_FORMAT_FLOAT_R32_G32 
GX2_SURFACE_FORMAT_FLOAT_R32_G32_B32_A32 
GX2_SURFACE_FORMAT_FLOAT_R16 
GX2_SURFACE_FORMAT_FLOAT_R16_G16 
GX2_SURFACE_FORMAT_FLOAT_R16_G16_B16_A16 
GX2_SURFACE_FORMAT_FLOAT_R11_G11_B10 
GX2_SURFACE_FORMAT_FLOAT_D24_S8 
GX2_SURFACE_FORMAT_FLOAT_X8_X24 

Definition at line 30 of file surface.h.

enum GX2AAMode
Enumerator
GX2_AA_MODE1X 

Definition at line 105 of file surface.h.

Enumerator
GX2_SURFACE_USE_TEXTURE 
GX2_SURFACE_USE_COLOR_BUFFER 
GX2_SURFACE_USE_DEPTH_BUFFER 
GX2_SURFACE_USE_SCAN_BUFFER 

Definition at line 110 of file surface.h.

Enumerator
GX2R_RESOURCE_FLAGS_BIND_TEXTURE 
GX2R_RESOURCE_FLAGS_BIND_COLOR_BUFFER 
GX2R_RESOURCE_FLAGS_BIND_DEPTH_BUFFER 
GX2R_RESOURCE_FLAGS_BIND_SCAN_BUFFER 
GX2R_RESOURCE_FLAGS_BIND_VERTEX_BUFFER 
GX2R_RESOURCE_FLAGS_BIND_INDEX_BUFFER 
GX2R_RESOURCE_FLAGS_BIND_UNIFORM_BLOCK 
GX2R_RESOURCE_FLAGS_BIND_SHADER_PROGRAM 
GX2R_RESOURCE_FLAGS_BIND_STREAM_OUTPUT 
GX2R_RESOURCE_FLAGS_BIND_DISPLAY_LIST 
GX2R_RESOURCE_FLAGS_BIND_GS_RING 
GX2R_RESOURCE_FLAGS_USAGE_CPU_READ 
GX2R_RESOURCE_FLAGS_USAGE_CPU_WRITE 
GX2R_RESOURCE_FLAGS_USAGE_GPU_READ 
GX2R_RESOURCE_FLAGS_USAGE_GPU_WRITE 
GX2R_RESOURCE_FLAGS_USAGE_DMA_READ 
GX2R_RESOURCE_FLAGS_USAGE_DMA_WRITE 
GX2R_RESOURCE_FLAGS_USAGE_FORCE_MEM1 
GX2R_RESOURCE_FLAGS_USAGE_FORCE_MEM2 
GX2R_RESOURCE_FLAGS_USER_MEMORY 
GX2R_RESOURCE_FLAGS_LOCKED 

Definition at line 118 of file surface.h.

Enumerator
GX2_TILE_MODE_DEFAULT 
GX2_TILE_MODE_LINEAR_ALIGNED 
GX2_TILE_MODE_TILED_1D_THIN1 
GX2_TILE_MODE_TILED_1D_THICK 
GX2_TILE_MODE_TILED_2D_THIN1 
GX2_TILE_MODE_TILED_2D_THIN2 
GX2_TILE_MODE_TILED_2D_THIN4 
GX2_TILE_MODE_TILED_2D_THICK 
GX2_TILE_MODE_TILED_2B_THIN1 
GX2_TILE_MODE_TILED_2B_THIN2 
GX2_TILE_MODE_TILED_2B_THIN4 
GX2_TILE_MODE_TILED_2B_THICK 
GX2_TILE_MODE_TILED_3D_THIN1 
GX2_TILE_MODE_TILED_3D_THICK 
GX2_TILE_MODE_TILED_3B_THIN1 
GX2_TILE_MODE_TILED_3B_THICK 
GX2_TILE_MODE_LINEAR_SPECIAL 

Definition at line 143 of file surface.h.

Enumerator
GX2_RENDER_TARGET_0 
GX2_RENDER_TARGET_1 
GX2_RENDER_TARGET_2 
GX2_RENDER_TARGET_3 
GX2_RENDER_TARGET_4 
GX2_RENDER_TARGET_5 
GX2_RENDER_TARGET_6 

Definition at line 164 of file surface.h.

Function Documentation

void GX2CalcSurfaceSizeAndAlignment ( GX2Surface surface)
void GX2CalcDepthBufferHiZInfo ( GX2DepthBuffer depthBuffer,
uint32_t *  outSize,
uint32_t *  outAlignment 
)
void GX2SetColorBuffer ( GX2ColorBuffer colorBuffer,
GX2RenderTarget  target 
)
void GX2SetDepthBuffer ( GX2DepthBuffer depthBuffer)
void GX2InitColorBufferRegs ( GX2ColorBuffer colorBuffer)
void GX2InitDepthBufferRegs ( GX2DepthBuffer depthBuffer)
void GX2InitDepthBufferHiZEnable ( GX2DepthBuffer depthBuffer,
BOOL  enable 
)
uint32_t GX2GetSurfaceSwizzle ( GX2Surface surface)
void GX2SetSurfaceSwizzle ( GX2Surface surface,
uint32_t  swizzle 
)
void GX2CopySurface ( GX2Surface src,
uint32_t  srcLevel,
uint32_t  srcDepth,
GX2Surface dst,
uint32_t  dstLevel,
uint32_t  dstDepth 
)