From 613e1ad5d517d9964bd9cf94daa931dda33113fe Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 5 Nov 2005 02:15:21 +0000 Subject: Replace parameter_type enum in program.[ch], use register_file enums instead. --- src/mesa/shader/program.h | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'src/mesa/shader/program.h') diff --git a/src/mesa/shader/program.h b/src/mesa/shader/program.h index 776062f7d0..2d8ff4ab14 100644 --- a/src/mesa/shader/program.h +++ b/src/mesa/shader/program.h @@ -190,35 +190,26 @@ enum state_index { -/* +/** * Named program parameters * Used for NV_fragment_program "DEFINE"d constants and "DECLARE"d parameters, * and ARB_fragment_program global state references. For the later, Name * might be "state.light[0].diffuse", for example. */ - -enum parameter_type -{ - NAMED_PARAMETER, - CONSTANT, - STATE -}; - - struct program_parameter { const char *Name; /* Null-terminated */ - enum parameter_type Type; + enum register_file Type; /** PROGRAM_NAMED_PARAM, CONSTANT or STATE_VAR */ enum state_index StateIndexes[6]; /* Global state reference */ }; struct program_parameter_list { - GLuint Size; - GLuint NumParameters; - struct program_parameter *Parameters; - GLfloat (*ParameterValues)[4]; + GLuint Size; /** allocated size of Parameters, ParameterValues */ + GLuint NumParameters; /** number of parameters in arrays */ + struct program_parameter *Parameters; /** Array [Size] */ + GLfloat (*ParameterValues)[4]; /** Array [Size] */ }; -- cgit v1.2.3