|
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... | |
Macros | |
| #define | PARAM_BOOL 0 |
| #define | PARAM_BOOL1 1 |
| #define | PARAM_BOOL2 2 |
| #define | PARAM_BOOL3 3 |
| #define | PARAM_BOOL4 4 |
| #define | PARAM_FLOAT 5 |
| #define | PARAM_FLOAT1 6 |
| #define | PARAM_FLOAT2 7 |
| #define | PARAM_FLOAT3 8 |
| #define | PARAM_FLOAT4 9 |
| #define | PARAM_FLOAT3x4 10 |
| #define | PARAM_FLOAT4x4 11 |
| #define | PARAM_FLOAT3x3 12 |
| #define | PARAM_FLOAT4x3 13 |
| #define | PARAM_SAMPLER1D 14 |
| #define | PARAM_SAMPLER2D 15 |
| #define | PARAM_SAMPLER3D 16 |
| #define | PARAM_SAMPLERCUBE 17 |
| #define | PARAM_SAMPLERRECT 18 |
| #define | PARAM_UNKNOWN 0xff |
Typedefs | |
| typedef struct rsx_vp | rsxVertexProgram |
| Vertex program data structure. | |
| typedef struct rsx_fp | rsxFragmentProgram |
| Fragment program data structure. | |
| 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 (const rsxVertexProgram *vp, void **ucode, u32 *size) |
| Get Ucode from RSX vertex program. | |
| u16 | rsxVertexProgramGetNumConst (const rsxVertexProgram *vp) |
| Get the count of vertex program consts. | |
| rsxProgramConst * | rsxVertexProgramGetConsts (const rsxVertexProgram *vp) |
| Get the list of vertex program consts. | |
| s32 | rsxVertexProgramGetConstIndex (const rsxVertexProgram *vp, const char *name) |
| Get index of vertex program const from its name. | |
| rsxProgramConst * | rsxVertexProgramGetConst (const rsxVertexProgram *vp, const char *name) |
| Get const value of vertex program const from its name. | |
| u16 | rsxVertexProgramGetNumAttrib (const rsxVertexProgram *vp) |
| Get the count of vertex program attributes. | |
| rsxProgramAttrib * | rsxVertexProgramGetAttribs (const rsxVertexProgram *vp) |
| Get the list of vertex program attributes. | |
| rsxProgramAttrib * | rsxVertexProgramGetAttrib (const rsxVertexProgram *vp, const char *name) |
| Get attribute value of vertex program attribute from its name. | |
| s32 | rsxVertexProgramGetAttribIndex (const rsxVertexProgram *vp, const char *name) |
| Get index of vertex program attribute from its name. | |
| void | rsxFragmentProgramGetUCode (const rsxFragmentProgram *fp, void **ucode, u32 *size) |
| Get Ucode from RSX fragment program. | |
| u16 | rsxFragmentProgramGetNumConst (const rsxFragmentProgram *fp) |
| Get the count of fragment program consts. | |
| rsxProgramConst * | rsxFragmentProgramGetConsts (const rsxFragmentProgram *fp) |
| Get the list of fragment program consts. | |
| s32 | rsxFragmentProgramGetConstIndex (const rsxFragmentProgram *fp, const char *name) |
| Get index of fragment program const from its name. | |
| rsxProgramConst * | rsxFragmentProgramGetConst (const rsxFragmentProgram *fp, const char *name) |
| Get const value of fragment program const from its name. | |
| u16 | rsxFragmentProgramGetNumAttrib (const rsxFragmentProgram *fp) |
| Get the count of fragment program attributes. | |
| rsxProgramAttrib * | rsxFragmentProgramGetAttribs (const rsxFragmentProgram *fp) |
| Get the list of fragment program attributes. | |
| s32 | rsxFragmentProgramGetAttribIndex (const rsxFragmentProgram *fp, const char *name) |
| Get index of fragment program attribute from its name. | |
| rsxProgramAttrib * | rsxFragmentProgramGetAttrib (const rsxFragmentProgram *fp, const char *name) |
| Get attribute value of fragment program attribute from its name. | |
| rsxConstOffsetTable * | rsxFragmentProgramGetConstOffsetTable (const rsxFragmentProgram *fp, u32 table_off) |
| Get const offset table from a fragment program. | |
RSX shader programming management.
Definition in file rsx_program.h.
| #define PARAM_BOOL 0 |
Definition at line 10 of file rsx_program.h.
| #define PARAM_BOOL1 1 |
Definition at line 11 of file rsx_program.h.
| #define PARAM_BOOL2 2 |
Definition at line 12 of file rsx_program.h.
| #define PARAM_BOOL3 3 |
Definition at line 13 of file rsx_program.h.
| #define PARAM_BOOL4 4 |
Definition at line 14 of file rsx_program.h.
| #define PARAM_FLOAT 5 |
Definition at line 15 of file rsx_program.h.
| #define PARAM_FLOAT1 6 |
Definition at line 16 of file rsx_program.h.
| #define PARAM_FLOAT2 7 |
Definition at line 17 of file rsx_program.h.
| #define PARAM_FLOAT3 8 |
Definition at line 18 of file rsx_program.h.
| #define PARAM_FLOAT3x3 12 |
Definition at line 22 of file rsx_program.h.
| #define PARAM_FLOAT3x4 10 |
Definition at line 20 of file rsx_program.h.
| #define PARAM_FLOAT4 9 |
Definition at line 19 of file rsx_program.h.
| #define PARAM_FLOAT4x3 13 |
Definition at line 23 of file rsx_program.h.
| #define PARAM_FLOAT4x4 11 |
Definition at line 21 of file rsx_program.h.
| #define PARAM_SAMPLER1D 14 |
Definition at line 24 of file rsx_program.h.
| #define PARAM_SAMPLER2D 15 |
Definition at line 25 of file rsx_program.h.
| #define PARAM_SAMPLER3D 16 |
Definition at line 26 of file rsx_program.h.
| #define PARAM_SAMPLERCUBE 17 |
Definition at line 27 of file rsx_program.h.
| #define PARAM_SAMPLERRECT 18 |
Definition at line 28 of file rsx_program.h.
| #define PARAM_UNKNOWN 0xff |
Definition at line 29 of file rsx_program.h.
| typedef struct rsx_co_table rsxConstOffsetTable |
Table of const offsets.
| 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_attrib rsxProgramAttrib |
Table of program attributes.
| typedef struct rsx_const rsxProgramConst |
Program const data structure.
| typedef struct rsx_vp rsxVertexProgram |
Vertex program data structure.
This data structure is filled by cgcomp, the offline compiler for shader programs.
| rsxProgramAttrib * rsxFragmentProgramGetAttrib | ( | const rsxFragmentProgram * | fp, |
| const char * | name | ||
| ) |
Get attribute value of fragment program attribute from its name.
| fp | Pointer the to fragment program structure. |
| name | Name of the fragment program attribute. |
| s32 rsxFragmentProgramGetAttribIndex | ( | const rsxFragmentProgram * | fp, |
| const char * | name | ||
| ) |
Get index of fragment program attribute from its name.
| fp | Pointer the to fragment program structure. |
| name | Name of the fragment program attribute. |
| rsxProgramAttrib * rsxFragmentProgramGetAttribs | ( | const rsxFragmentProgram * | fp | ) |
Get the list of fragment program attributes.
| fp | Pointer the to fragment program structure. |
| rsxProgramConst * rsxFragmentProgramGetConst | ( | const rsxFragmentProgram * | fp, |
| const char * | name | ||
| ) |
Get const value of fragment program const from its name.
| fp | Pointer the to fragment program structure. |
| name | Name of the fragment program const. |
| s32 rsxFragmentProgramGetConstIndex | ( | const rsxFragmentProgram * | fp, |
| const char * | name | ||
| ) |
Get index of fragment program const from its name.
| fp | Pointer the to fragment program structure. |
| name | Name of the fragment program const. |
| rsxConstOffsetTable * rsxFragmentProgramGetConstOffsetTable | ( | const 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 | ( | const rsxFragmentProgram * | fp | ) |
Get the list of fragment program consts.
| fp | Pointer the to fragment program structure. |
| u16 rsxFragmentProgramGetNumAttrib | ( | const rsxFragmentProgram * | fp | ) |
Get the count of fragment program attributes.
| fp | Pointer the to fragment program structure. |
| u16 rsxFragmentProgramGetNumConst | ( | const rsxFragmentProgram * | fp | ) |
Get the count of fragment program consts.
| fp | Pointer the to fragment program structure. |
| void rsxFragmentProgramGetUCode | ( | const rsxFragmentProgram * | fp, |
| void ** | ucode, | ||
| u32 * | size | ||
| ) |
Get Ucode from RSX fragment program.
| fp | Pointer the to fragment program structure. |
| ucode | Pointer-pointer to receive the fragment program ucode. |
| size | Pointer to receive the fragment program ucode size. |
| rsxProgramAttrib * rsxVertexProgramGetAttrib | ( | const rsxVertexProgram * | vp, |
| const char * | name | ||
| ) |
Get attribute value of vertex program attribute from its name.
| vp | Pointer the to vertex program structure. |
| name | Name of the vertex program attribute. |
| s32 rsxVertexProgramGetAttribIndex | ( | const rsxVertexProgram * | vp, |
| const char * | name | ||
| ) |
Get index of vertex program attribute from its name.
| vp | Pointer the to vertex program structure. |
| name | Name of the vertex program attribute. |
| rsxProgramAttrib * rsxVertexProgramGetAttribs | ( | const rsxVertexProgram * | vp | ) |
Get the list of vertex program attributes.
| vp | Pointer the to vertex program structure. |
| rsxProgramConst * rsxVertexProgramGetConst | ( | const rsxVertexProgram * | vp, |
| const char * | name | ||
| ) |
Get const value of vertex program const from its name.
| vp | Pointer the to vertex program structure. |
| name | Name of the vertex program const. |
| s32 rsxVertexProgramGetConstIndex | ( | const rsxVertexProgram * | vp, |
| const char * | name | ||
| ) |
Get index of vertex program const from its name.
| vp | Pointer the to vertex program structure. |
| name | Name of the vertex program const. |
| rsxProgramConst * rsxVertexProgramGetConsts | ( | const rsxVertexProgram * | vp | ) |
Get the list of vertex program consts.
| vp | Pointer the to vertex program structure. |
| u16 rsxVertexProgramGetNumAttrib | ( | const rsxVertexProgram * | vp | ) |
Get the count of vertex program attributes.
| vp | Pointer the to vertex program structure. |
| u16 rsxVertexProgramGetNumConst | ( | const rsxVertexProgram * | vp | ) |
Get the count of vertex program consts.
| vp | Pointer the to vertex program structure. |
| void rsxVertexProgramGetUCode | ( | const rsxVertexProgram * | vp, |
| void ** | ucode, | ||
| u32 * | size | ||
| ) |
Get Ucode from RSX vertex program.
| vp | Pointer the to vertex program structure. |
| ucode | Pointer-pointer to receive the vertex program ucode. |
| size | Pointer to receive the vertex program ucode size. |