glsl: Translate the AST for uniform blocks into some IR structures.
[mesa.git] / src / mesa / main / mtypes.h
index 4769e106631a054fe1be38f885635d82e1ea4e6c..b39a8dcd75bf83fc4408a61c45fcfcb64d796ace 100644 (file)
@@ -2237,6 +2237,24 @@ typedef enum
    MESA_SHADER_TYPES = 3
 } gl_shader_type;
 
+struct gl_uniform_buffer_variable
+{
+   char *Name;
+   const struct glsl_type *Type;
+   unsigned int Buffer;
+   unsigned int Offset;
+   GLboolean RowMajor;
+};
+
+struct gl_uniform_block
+{
+   /** Declared name of the uniform block */
+   char *Name;
+
+   /** Array of supplemental information about UBO ir_variables. */
+   struct gl_uniform_buffer_variable *Uniforms;
+   GLuint NumUniforms;
+};
 
 /**
  * A GLSL program object.