summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-05-24 03:01:58 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-05-24 03:01:58 +0000
commit0c1cbd5805e27914eba7278c51bdd7b3c42b4c52 (patch)
treefc78ae02ef2cb52a4ef8680db250f3aaebafbdb9 /src/mesa/shader
parentd9736db6676948e06712d4bcba46b7040452f870 (diff)
use GLbitfield for StateFlags, improved comments
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/program.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/src/mesa/shader/program.h b/src/mesa/shader/program.h
index 3e6c8a7d98..ed2a8f15c5 100644
--- a/src/mesa/shader/program.h
+++ b/src/mesa/shader/program.h
@@ -2,7 +2,7 @@
* Mesa 3-D graphics library
* Version: 6.5
*
- * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -192,21 +192,23 @@ enum state_index {
*/
struct program_parameter
{
- const char *Name; /* Null-terminated */
- enum register_file Type; /** PROGRAM_NAMED_PARAM, CONSTANT or STATE_VAR */
- enum state_index StateIndexes[6]; /* Global state reference */
+ const char *Name; /**< Null-terminated string */
+ enum register_file Type; /**< PROGRAM_NAMED_PARAM, CONSTANT or STATE_VAR */
+ enum state_index StateIndexes[6]; /**< Global state reference */
};
+/**
+ * A list of the above program_parameter instances.
+ */
struct program_parameter_list
{
- 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] */
- GLuint StateFlags; /** _NEW_* flags indicating which
- statechanges might invalidate
- ParameterValues[] */
+ 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] of GLfloat[4] */
+ GLbitfield StateFlags; /**< _NEW_* flags indicating which state changes
+ might invalidate ParameterValues[] */
};