psl1ght
A free SDK for Sony's PS3 console
Loading...
Searching...
No Matches
rsx_fp Struct Reference

Fragment 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 fragment program
 
u16 num_attr
 number of used input attributes in the fragment program
 
u16 num_const
 number of used constants in the fragment program
 
u16 num_insn
 number of fragment program 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 shaders's micro code
 
u32 fp_control
 fragment program control mask
 
u16 texcoords
 bit mask of all used texture coords in the fragment program
 
u16 texcoord2D
 bit mask of used 2D texture coords in the fragment program
 
u16 texcoord3D
 bit mask of used 3D texture coords in the fragment program
 
u16 _pad1
 unused padding word. most be 0
 

Detailed Description

Fragment program data structure.

This data structure is filled by cgcomp, the offline compiler for shader programs.

Definition at line 62 of file rsx_program.h.

Field Documentation

◆ _pad0

u16 rsx_fp::_pad0

unused padding word. most be 0

Definition at line 65 of file rsx_program.h.

◆ _pad1

u16 rsx_fp::_pad1

unused padding word. most be 0

Definition at line 81 of file rsx_program.h.

◆ attr_off

u32 rsx_fp::attr_off

offset to the attribute name table

Definition at line 72 of file rsx_program.h.

◆ const_off

u32 rsx_fp::const_off

offset to the constant name table

Definition at line 73 of file rsx_program.h.

◆ fp_control

u32 rsx_fp::fp_control

fragment program control mask

Definition at line 76 of file rsx_program.h.

◆ magic

u16 rsx_fp::magic

magic identifier

Definition at line 64 of file rsx_program.h.

◆ num_attr

u16 rsx_fp::num_attr

number of used input attributes in the fragment program

Definition at line 68 of file rsx_program.h.

◆ num_const

u16 rsx_fp::num_const

number of used constants in the fragment program

Definition at line 69 of file rsx_program.h.

◆ num_insn

u16 rsx_fp::num_insn

number of fragment program instructions

Definition at line 70 of file rsx_program.h.

◆ num_regs

u16 rsx_fp::num_regs

number of used registers in the fragment program

Definition at line 67 of file rsx_program.h.

◆ texcoord2D

u16 rsx_fp::texcoord2D

bit mask of used 2D texture coords in the fragment program

Definition at line 79 of file rsx_program.h.

◆ texcoord3D

u16 rsx_fp::texcoord3D

bit mask of used 3D texture coords in the fragment program

Definition at line 80 of file rsx_program.h.

◆ texcoords

u16 rsx_fp::texcoords

bit mask of all used texture coords in the fragment program

Definition at line 78 of file rsx_program.h.

◆ ucode_off

u32 rsx_fp::ucode_off

offset to the shaders's micro code

Definition at line 74 of file rsx_program.h.


The documentation for this struct was generated from the following file: