glsl_symbol_table: add interface block namespaces
[mesa.git] / src / glsl / glsl_symbol_table.h
index 9f5602787f083c1a077b8bb93d18debb28ebbe18..2753bdf315696e37b609a3b58a9f0c08b6904f23 100644 (file)
@@ -99,6 +99,8 @@ public:
    bool add_variable(ir_variable *v);
    bool add_type(const char *name, const glsl_type *t);
    bool add_function(ir_function *f);
+   bool add_interface(const char *name, const glsl_type *i,
+                      enum ir_variable_mode mode);
    /*@}*/
 
    /**
@@ -113,6 +115,8 @@ public:
    ir_variable *get_variable(const char *name);
    const glsl_type *get_type(const char *name);
    ir_function *get_function(const char *name);
+   const glsl_type *get_interface(const char *name,
+                                  enum ir_variable_mode mode);
    /*@}*/
 
 private: