diff options
author | Brian <[email protected]> | 2007-04-18 16:46:53 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-04-18 17:14:14 -0600 |
commit | 8d370fb2eee702e1ba2c622716645d450272549a (patch) | |
tree | 9f99be3889d8d08710beba002f05dee6ef0c60e7 /src/mesa | |
parent | 36a6a59972857676108c4ee72e677734848d3056 (diff) |
new comments
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/shader/prog_parameter.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/shader/prog_parameter.c b/src/mesa/shader/prog_parameter.c index 7f17be74f72..a01a6456fb6 100644 --- a/src/mesa/shader/prog_parameter.c +++ b/src/mesa/shader/prog_parameter.c @@ -251,6 +251,14 @@ _mesa_add_unnamed_constant(struct gl_program_parameter_list *paramList, } +/** + * Add a uniform to the parameter list. + * Note that if the uniform is an array, size may be greater than + * what's implied by the datatype. + * \param name uniform's name + * \param size number of floats to allocate + * \param datatype GL_FLOAT_VEC3, GL_FLOAT_MAT4, etc. + */ GLint _mesa_add_uniform(struct gl_program_parameter_list *paramList, const char *name, GLuint size, GLenum datatype) @@ -272,6 +280,11 @@ _mesa_add_uniform(struct gl_program_parameter_list *paramList, } +/** + * Add a sampler to the parameter list. + * \param name uniform's name + * \param datatype GL_SAMPLER_2D, GL_SAMPLER_2D_RECT_ARB, etc. + */ GLint _mesa_add_sampler(struct gl_program_parameter_list *paramList, const char *name, GLenum datatype) |