diff options
author | Brian <[email protected]> | 2007-02-17 09:15:00 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-02-17 09:15:00 -0700 |
commit | 501ee87180047dd04afc69103c31e1eae5374bf1 (patch) | |
tree | eab47ab6824b6ed8a7fed8dbff0cd6feafbce999 /src/mesa/shader/prog_print.h | |
parent | 00647c39deec87cfaff6e4a694020875340fdd09 (diff) |
Lots of changes to prog_print.c code.
Mainly, allow printing programs in either ARB, NV or "debug" formats.
Diffstat (limited to 'src/mesa/shader/prog_print.h')
-rw-r--r-- | src/mesa/shader/prog_print.h | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/src/mesa/shader/prog_print.h b/src/mesa/shader/prog_print.h index 19aaa538007..79c599f5a7b 100644 --- a/src/mesa/shader/prog_print.h +++ b/src/mesa/shader/prog_print.h @@ -27,18 +27,32 @@ #define PROG_PRINT_H -extern GLint -_mesa_print_instruction(const struct prog_instruction *inst, GLint indent); +/** + * The output style to use when printing programs. + */ +typedef enum { + PROG_PRINT_ARB, + PROG_PRINT_NV, + PROG_PRINT_DEBUG +} gl_prog_print_mode; + extern void -_mesa_print_alu_instruction(const struct prog_instruction *inst, - const char *opcode_string, - GLuint numRegs); +_mesa_print_instruction(const struct prog_instruction *inst); + +extern GLint +_mesa_print_instruction_opt(const struct prog_instruction *inst, GLint indent, + gl_prog_print_mode mode, + const struct gl_program *prog); extern void _mesa_print_program(const struct gl_program *prog); extern void +_mesa_print_program_opt(const struct gl_program *prog, gl_prog_print_mode mode, + GLboolean lineNumbers); + +extern void _mesa_print_program_parameters(GLcontext *ctx, const struct gl_program *prog); extern void |