|
psl1ght
A free SDK for Sony's PS3 console
|
Vertex program data structure. More...
#include <rsx_program.h>
Data Fields | |
| u16 | magic |
| magic identifier | |
| u16 | _pad0 |
| unused padding word. most be 0 | |
| u16 | num_regs |
| number of used registers in the vertex program | |
| u16 | num_attr |
| number of used input attributes in the vertex program | |
| u16 | num_const |
| number of used constants in the vertex program | |
| u16 | num_insn |
| number of vertex shader instructions | |
| u32 | attr_off |
| offset to the attribute name table | |
| u32 | const_off |
| offset to the constant name table | |
| u32 | ucode_off |
| offset to the shader's micro code | |
| u32 | input_mask |
| mask of input attributes in the vertex shader | |
| u32 | output_mask |
| mask of result attributes passed to the fragment shader | |
| u16 | const_start |
| start address in vertex shader's constant block memory | |
| u16 | insn_start |
| start address to load the vertex program to | |
Vertex program data structure.
This data structure is filled by cgcomp, the offline compiler for shader programs.
Definition at line 38 of file rsx_program.h.
| u16 rsx_vp::_pad0 |
unused padding word. most be 0
Definition at line 41 of file rsx_program.h.
| u32 rsx_vp::attr_off |
offset to the attribute name table
Definition at line 48 of file rsx_program.h.
| u32 rsx_vp::const_off |
offset to the constant name table
Definition at line 49 of file rsx_program.h.
| u16 rsx_vp::const_start |
start address in vertex shader's constant block memory
Definition at line 55 of file rsx_program.h.
| u32 rsx_vp::input_mask |
mask of input attributes in the vertex shader
Definition at line 52 of file rsx_program.h.
| u16 rsx_vp::insn_start |
start address to load the vertex program to
Definition at line 56 of file rsx_program.h.
| u16 rsx_vp::magic |
magic identifier
Definition at line 40 of file rsx_program.h.
| u16 rsx_vp::num_attr |
number of used input attributes in the vertex program
Definition at line 44 of file rsx_program.h.
| u16 rsx_vp::num_const |
number of used constants in the vertex program
Definition at line 45 of file rsx_program.h.
| u16 rsx_vp::num_insn |
number of vertex shader instructions
Definition at line 46 of file rsx_program.h.
| u16 rsx_vp::num_regs |
number of used registers in the vertex program
Definition at line 43 of file rsx_program.h.
| u32 rsx_vp::output_mask |
mask of result attributes passed to the fragment shader
Definition at line 53 of file rsx_program.h.
| u32 rsx_vp::ucode_off |
offset to the shader's micro code
Definition at line 50 of file rsx_program.h.