psl1ght
A free SDK for Sony's PS3 console
|
RSX shader programming management. More...
#include <ppu-types.h>
Go to the source code of this file.
Data Structures | |
struct | rsx_vp |
Vertex program data structure. More... | |
struct | rsx_fp |
Fragment program data structure. More... | |
struct | rsx_const |
Program const data structure. More... | |
struct | rsx_co_table |
Table of const offsets. More... | |
struct | rsx_attrib |
Table of program attributes. More... | |
Typedefs | |
typedef struct rsx_vp | rsxVertexProgram |
Vertex program data structure. More... | |
typedef struct rsx_fp | rsxFragmentProgram |
Fragment program data structure. More... | |
typedef struct rsx_const | rsxProgramConst |
Program const data structure. | |
typedef struct rsx_co_table | rsxConstOffsetTable |
Table of const offsets. | |
typedef struct rsx_attrib | rsxProgramAttrib |
Table of program attributes. | |
Functions | |
void * | rsxVertexProgramGetUCode (rsxVertexProgram *vp) |
Get Ucode from RSX vertex program. More... | |
rsxProgramConst * | rsxVertexProgramGetConsts (rsxVertexProgram *vp) |
Get the list of vertex program consts. More... | |
s32 | rsxVertexProgramGetConst (rsxVertexProgram *vp, const char *name) |
Get id of vertex program const from its name. More... | |
rsxProgramAttrib * | rsxVertexProgramGetAttribs (rsxVertexProgram *vp) |
Get the list of vertex program attributes. More... | |
s32 | rsxVertexProgramGetAttrib (rsxVertexProgram *vp, const char *name) |
Get id of vertex program attribute from its name. More... | |
void * | rsxFragmentProgramGetUCode (rsxFragmentProgram *fp, u32 *size) |
Get Ucode from RSX fragment program. More... | |
rsxProgramConst * | rsxFragmentProgramGetConsts (rsxFragmentProgram *fp) |
Get the list of fragment program consts. More... | |
s32 | rsxFragmentProgramGetConst (rsxFragmentProgram *fp, const char *name) |
Get id of fragment program const from its name. More... | |
rsxProgramAttrib * | rsxFragmentProgramGetAttribs (rsxFragmentProgram *fp) |
Get the list of fragment program attributes. More... | |
s32 | rsxFragmentProgramGetAttrib (rsxFragmentProgram *fp, const char *name) |
Get id of fragment program attribute from its name. More... | |
rsxConstOffsetTable * | rsxFragmentProgramGetConstOffsetTable (rsxFragmentProgram *fp, u32 table_off) |
Get const offset table from a fragment program. More... | |
RSX shader programming management.
typedef struct rsx_fp rsxFragmentProgram |
Fragment program data structure.
This data structure is filled by cgcomp, the offline compiler for shader programs.
typedef struct rsx_vp rsxVertexProgram |
Vertex program data structure.
This data structure is filled by cgcomp, the offline compiler for shader programs.
s32 rsxFragmentProgramGetAttrib | ( | rsxFragmentProgram * | fp, |
const char * | name | ||
) |
Get id of fragment program attribute from its name.
fp | Pointer the to fragment program structure. |
name | Name of the fragment program attribute. |
rsxProgramAttrib* rsxFragmentProgramGetAttribs | ( | rsxFragmentProgram * | fp | ) |
Get the list of fragment program attributes.
fp | Pointer the to fragment program structure. |
s32 rsxFragmentProgramGetConst | ( | rsxFragmentProgram * | fp, |
const char * | name | ||
) |
Get id of fragment program const from its name.
fp | Pointer the to fragment program structure. |
name | Name of the fragment program const. |
rsxConstOffsetTable* rsxFragmentProgramGetConstOffsetTable | ( | rsxFragmentProgram * | fp, |
u32 | table_off | ||
) |
Get const offset table from a fragment program.
fp | Pointer the to fragment program structure. |
table_off | Offset of the const offset table. |
rsxProgramConst* rsxFragmentProgramGetConsts | ( | rsxFragmentProgram * | fp | ) |
Get the list of fragment program consts.
fp | Pointer the to fragment program structure. |
void* rsxFragmentProgramGetUCode | ( | rsxFragmentProgram * | fp, |
u32 * | size | ||
) |
Get Ucode from RSX fragment program.
fp | Pointer the to fragment program structure. |
s32 rsxVertexProgramGetAttrib | ( | rsxVertexProgram * | vp, |
const char * | name | ||
) |
Get id of vertex program attribute from its name.
vp | Pointer the to vertex program structure. |
name | Name of the vertex program attribute. |
rsxProgramAttrib* rsxVertexProgramGetAttribs | ( | rsxVertexProgram * | vp | ) |
Get the list of vertex program attributes.
vp | Pointer the to vertex program structure. |
s32 rsxVertexProgramGetConst | ( | rsxVertexProgram * | vp, |
const char * | name | ||
) |
Get id of vertex program const from its name.
vp | Pointer the to vertex program structure. |
name | Name of the vertex program const. |
rsxProgramConst* rsxVertexProgramGetConsts | ( | rsxVertexProgram * | vp | ) |
Get the list of vertex program consts.
vp | Pointer the to vertex program structure. |
void* rsxVertexProgramGetUCode | ( | rsxVertexProgram * | vp | ) |
Get Ucode from RSX vertex program.
vp | Pointer the to vertex program structure. |