From 3f09c2508a05f1505b5f5b2081514797fb3163ff Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 17 Jun 2010 12:59:27 -0700 Subject: [PATCH] Add glsl_program that is similar to Mesa's gl_shader_program --- program.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/program.h b/program.h index df903edc95c..81137c4e98d 100644 --- a/program.h +++ b/program.h @@ -39,3 +39,28 @@ struct glsl_shader { struct exec_list ir; struct glsl_symbol_table *symbols; }; + + +struct gl_program_parameter_list; +struct gl_uniform_list; + +/** + * Based on gl_shader_program in Mesa's mtypes.h. + */ +struct glsl_program { + GLenum Type; /**< Always GL_SHADER_PROGRAM (internal token) */ + GLuint Name; /**< aka handle or ID */ + GLint RefCount; /**< Reference count */ + GLboolean DeletePending; + + GLuint NumShaders; /**< number of attached shaders */ + struct glsl_shader **Shaders; /**< List of attached the shaders */ + + /* post-link info: */ + struct gl_uniform_list *Uniforms; + struct gl_program_parameter_list *Varying; + GLboolean LinkStatus; /**< GL_LINK_STATUS */ + GLboolean Validated; + GLboolean _Used; /**< Ever used for drawing? */ + GLchar *InfoLog; +}; -- 2.30.2