summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-06-17 12:59:27 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-06-17 12:59:27 -0700
commit3f09c2508a05f1505b5f5b2081514797fb3163ff (patch)
tree2a1e070248993ec8d108ac99555716bfccc3b226
parentf8fe53ca2eef3876e801d7a3b83f50b8e1612dcf (diff)
Add glsl_program that is similar to Mesa's gl_shader_program
-rw-r--r--program.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/program.h b/program.h
index df903ed..81137c4 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;
+};