summaryrefslogtreecommitdiff
path: root/src/mesa/shader/program.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-11-05 02:15:21 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-11-05 02:15:21 +0000
commit613e1ad5d517d9964bd9cf94daa931dda33113fe (patch)
tree82e4e7c4b9caf7cd5b341aff7c0b33fe25b29277 /src/mesa/shader/program.h
parent4d0b7618cb3ada3b13e9e9b650ace34f5131e318 (diff)
Replace parameter_type enum in program.[ch], use register_file enums instead.
Diffstat (limited to 'src/mesa/shader/program.h')
-rw-r--r--src/mesa/shader/program.h21
1 files changed, 6 insertions, 15 deletions
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] */
};