RetroArch
|
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <wiiu/gx2.h>
#include <wiiu/system/memory.h>
#include <wiiu/shader_utils.h>
#include <wiiu/wiiu_dbg.h>
Classes | |
struct | org_programs_t |
struct | GFDFileHeader |
struct | GFDBlockHeader |
struct | GFDRelocationHeader |
struct | GFDBlock |
Macros | |
#define | MAKE_MAGIC(c0, c1, c2, c3) ((c0 << 24) |(c1 << 16) |(c2 << 8) |(c3 << 0)) |
#define | GFD_FILE_MAJOR_VERSION 7 |
#define | GFD_FILE_GPU_VERSION 2 |
#define | GFD_BLOCK_MAJOR_VERSION 1 |
#define | GFD_FILE_MAGIC MAKE_MAGIC('G','f','x','2') |
#define | GFD_BLOCK_MAGIC MAKE_MAGIC('B','L','K','{') |
#define | GFD_BLOCK_RELOCATIONS_MAGIC MAKE_MAGIC('}','B','L','K') |
#define | GFD_RELOCATIONS_TYPE_MASK 0xFFF00000 |
#define | GFD_RELOCATIONS_VALUE_MASK (~GFD_RELOCATIONS_TYPE_MASK) |
#define | GFD_RELOCATIONS_DATA 0xD0600000 |
#define | GFD_RELOCATIONS_TEXT 0xCA700000 |
Enumerations | |
enum | GFDBlockType { GFD_BLOCK_TYPE_END_OF_FILE = 1, GFD_BLOCK_TYPE_PADDING = 2, GFD_BLOCK_TYPE_VERTEX_SHADER_HEADER = 3, GFD_BLOCK_TYPE_VERTEX_SHADER_PROGRAM = 5, GFD_BLOCK_TYPE_PIXEL_SHADER_HEADER = 6, GFD_BLOCK_TYPE_PIXEL_SHADER_PROGRAM = 7 } |
Functions | |
void | GX2InitShader (GX2Shader *shader) |
void | GX2DestroyShader (GX2Shader *shader) |
void | GX2SetShader (GX2Shader *shader) |
void | dump_vs_data (GX2VertexShader *vs) |
void | dump_ps_data (GX2PixelShader *ps) |
void | check_shader_verbose (u32 *shader, u32 shader_size, u32 *org, u32 org_size, const char *name) |
void | check_shader (const void *shader_, u32 shader_size, const void *org_, u32 org_size, const char *name) |
void | gfd_free (GFDFile *gfd) |
static bool | gfd_relocate_block (GFDBlock *block) |
GFDFile * | gfd_open (const char *filename) |
#define GFD_BLOCK_MAGIC MAKE_MAGIC('B','L','K','{') |
#define GFD_BLOCK_MAJOR_VERSION 1 |
#define GFD_BLOCK_RELOCATIONS_MAGIC MAKE_MAGIC('}','B','L','K') |
#define GFD_FILE_GPU_VERSION 2 |
#define GFD_FILE_MAGIC MAKE_MAGIC('G','f','x','2') |
#define GFD_FILE_MAJOR_VERSION 7 |
#define GFD_RELOCATIONS_DATA 0xD0600000 |
#define GFD_RELOCATIONS_TEXT 0xCA700000 |
#define GFD_RELOCATIONS_TYPE_MASK 0xFFF00000 |
#define GFD_RELOCATIONS_VALUE_MASK (~GFD_RELOCATIONS_TYPE_MASK) |
#define MAKE_MAGIC | ( | c0, | |
c1, | |||
c2, | |||
c3 | |||
) | ((c0 << 24) |(c1 << 16) |(c2 << 8) |(c3 << 0)) |
enum GFDBlockType |
void check_shader | ( | const void * | shader_, |
u32 | shader_size, | ||
const void * | org_, | ||
u32 | org_size, | ||
const char * | name | ||
) |
void check_shader_verbose | ( | u32 * | shader, |
u32 | shader_size, | ||
u32 * | org, | ||
u32 | org_size, | ||
const char * | name | ||
) |
void dump_ps_data | ( | GX2PixelShader * | ps | ) |
void dump_vs_data | ( | GX2VertexShader * | vs | ) |