Skip to content
Snippets Groups Projects
Commit 0ce6506d authored by Ian Romanick's avatar Ian Romanick
Browse files

glsl: Make prototype_string publicly available


Also clarify the documentation for one of the parameters.

Reviewed-by: default avatarPaul Berry <stereotype441@gmail.com>
Reviewed-by: default avatarEric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 1ad3ba4a)
parent 7fc66f0b
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,10 @@ process_parameters(exec_list *instructions, exec_list *actual_parameters,
*
* \param return_type Return type of the function. May be \c NULL.
* \param name Name of the function.
* \param parameters Parameter list for the function. This may be either a
* formal or actual parameter list. Only the type is used.
* \param parameters List of \c ir_instruction nodes representing the
* parameter list for the function. This may be either a
* formal (\c ir_variable) or actual (\c ir_rvalue)
* parameter list. Only the type is used.
*
* \return
* A ralloced string representing the prototype of the function.
......
......@@ -1667,4 +1667,8 @@ ir_has_call(ir_instruction *ir);
extern void
do_set_program_inouts(exec_list *instructions, struct gl_program *prog);
extern char *
prototype_string(const glsl_type *return_type, const char *name,
exec_list *parameters);
#endif /* IR_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment