WUT  0.1
Wii U Toolchain
Data Structures | Typedefs | Functions
Shaders

Data Structures

struct  GX2FetchShader
 
struct  GX2UniformBlock
 
struct  GX2UniformVar
 
struct  GX2UniformInitialValue
 
struct  GX2LoopVar
 
struct  GX2SamplerVar
 
struct  GX2AttribVar
 
struct  GX2VertexShader
 
struct  GX2PixelShader
 
struct  GX2GeometryShader
 
struct  GX2AttribStream
 

Typedefs

typedef struct GX2AttribVar GX2AttribVar
 
typedef struct GX2AttribStream GX2AttribStream
 
typedef struct GX2FetchShader GX2FetchShader
 
typedef struct GX2GeometryShader GX2GeometryShader
 
typedef struct GX2LoopVar GX2LoopVar
 
typedef struct GX2PixelShader GX2PixelShader
 
typedef struct GX2SamplerVar GX2SamplerVar
 
typedef struct GX2UniformBlock GX2UniformBlock
 
typedef struct GX2UniformVar GX2UniformVar
 
typedef struct GX2UniformInitialValue GX2UniformInitialValue
 
typedef struct GX2VertexShader GX2VertexShader
 

Functions

uint32_t GX2CalcGeometryShaderInputRingBufferSize (uint32_t ringItemSize)
 
uint32_t GX2CalcGeometryShaderOutputRingBufferSize (uint32_t ringItemSize)
 
uint32_t GX2CalcFetchShaderSizeEx (uint32_t attribs, GX2FetchShaderType fetchShaderType, GX2TessellationMode tesellationMode)
 
void GX2InitFetchShaderEx (GX2FetchShader *fetchShader, uint8_t *buffer, uint32_t attribCount, GX2AttribStream *attribs, GX2FetchShaderType type, GX2TessellationMode tessMode)
 
void GX2SetFetchShader (GX2FetchShader *shader)
 
void GX2SetVertexShader (GX2VertexShader *shader)
 
void GX2SetPixelShader (GX2PixelShader *shader)
 
void GX2SetGeometryShader (GX2GeometryShader *shader)
 
void GX2SetVertexSampler (GX2Sampler *sampler, uint32_t id)
 
void GX2SetPixelSampler (GX2Sampler *sampler, uint32_t id)
 
void GX2SetGeometrySampler (GX2Sampler *sampler, uint32_t id)
 
void GX2SetVertexUniformReg (uint32_t offset, uint32_t count, uint32_t *data)
 
void GX2SetPixelUniformReg (uint32_t offset, uint32_t count, uint32_t *data)
 
void GX2SetVertexUniformBlock (uint32_t location, uint32_t size, const void *data)
 
void GX2SetPixelUniformBlock (uint32_t location, uint32_t size, const void *data)
 
void GX2SetGeometryUniformBlock (uint32_t location, uint32_t size, const void *data)
 
void GX2SetShaderModeEx (GX2ShaderMode mode, uint32_t numVsGpr, uint32_t numVsStackEntries, uint32_t numGsGpr, uint32_t numGsStackEntries, uint32_t numPsGpr, uint32_t numPsStackEntries)
 
void GX2SetStreamOutEnable (BOOL enable)
 
void GX2SetGeometryShaderInputRingBuffer (void *buffer, uint32_t size)
 
void GX2SetGeometryShaderOutputRingBuffer (void *buffer, uint32_t size)
 
uint32_t GX2GetPixelShaderGPRs (GX2PixelShader *shader)
 
uint32_t GX2GetPixelShaderStackEntries (GX2PixelShader *shader)
 
uint32_t GX2GetVertexShaderGPRs (GX2VertexShader *shader)
 
uint32_t GX2GetVertexShaderStackEntries (GX2VertexShader *shader)
 
uint32_t GX2GetGeometryShaderGPRs (GX2GeometryShader *shader)
 
uint32_t GX2GetGeometryShaderStackEntries (GX2GeometryShader *shader)
 

Detailed Description

Typedef Documentation

typedef struct GX2AttribVar GX2AttribVar

Definition at line 16 of file shaders.h.

Definition at line 17 of file shaders.h.

Definition at line 18 of file shaders.h.

Definition at line 19 of file shaders.h.

typedef struct GX2LoopVar GX2LoopVar

Definition at line 20 of file shaders.h.

Definition at line 21 of file shaders.h.

typedef struct GX2SamplerVar GX2SamplerVar

Definition at line 22 of file shaders.h.

Definition at line 23 of file shaders.h.

typedef struct GX2UniformVar GX2UniformVar

Definition at line 24 of file shaders.h.

Definition at line 25 of file shaders.h.

Definition at line 26 of file shaders.h.

Function Documentation

uint32_t GX2CalcGeometryShaderInputRingBufferSize ( uint32_t  ringItemSize)
uint32_t GX2CalcGeometryShaderOutputRingBufferSize ( uint32_t  ringItemSize)
uint32_t GX2CalcFetchShaderSizeEx ( uint32_t  attribs,
GX2FetchShaderType  fetchShaderType,
GX2TessellationMode  tesellationMode 
)
void GX2InitFetchShaderEx ( GX2FetchShader fetchShader,
uint8_t *  buffer,
uint32_t  attribCount,
GX2AttribStream attribs,
GX2FetchShaderType  type,
GX2TessellationMode  tessMode 
)
void GX2SetFetchShader ( GX2FetchShader shader)
void GX2SetVertexShader ( GX2VertexShader shader)
void GX2SetPixelShader ( GX2PixelShader shader)
void GX2SetGeometryShader ( GX2GeometryShader shader)
void GX2SetVertexSampler ( GX2Sampler sampler,
uint32_t  id 
)
void GX2SetPixelSampler ( GX2Sampler sampler,
uint32_t  id 
)
void GX2SetGeometrySampler ( GX2Sampler sampler,
uint32_t  id 
)
void GX2SetVertexUniformReg ( uint32_t  offset,
uint32_t  count,
uint32_t *  data 
)
void GX2SetPixelUniformReg ( uint32_t  offset,
uint32_t  count,
uint32_t *  data 
)
void GX2SetVertexUniformBlock ( uint32_t  location,
uint32_t  size,
const void *  data 
)
void GX2SetPixelUniformBlock ( uint32_t  location,
uint32_t  size,
const void *  data 
)
void GX2SetGeometryUniformBlock ( uint32_t  location,
uint32_t  size,
const void *  data 
)
void GX2SetShaderModeEx ( GX2ShaderMode  mode,
uint32_t  numVsGpr,
uint32_t  numVsStackEntries,
uint32_t  numGsGpr,
uint32_t  numGsStackEntries,
uint32_t  numPsGpr,
uint32_t  numPsStackEntries 
)
void GX2SetStreamOutEnable ( BOOL  enable)
void GX2SetGeometryShaderInputRingBuffer ( void *  buffer,
uint32_t  size 
)
void GX2SetGeometryShaderOutputRingBuffer ( void *  buffer,
uint32_t  size 
)
uint32_t GX2GetPixelShaderGPRs ( GX2PixelShader shader)
uint32_t GX2GetPixelShaderStackEntries ( GX2PixelShader shader)
uint32_t GX2GetVertexShaderGPRs ( GX2VertexShader shader)
uint32_t GX2GetVertexShaderStackEntries ( GX2VertexShader shader)
uint32_t GX2GetGeometryShaderGPRs ( GX2GeometryShader shader)
uint32_t GX2GetGeometryShaderStackEntries ( GX2GeometryShader shader)