summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_symbol_table.h
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2013-03-21 09:57:20 -0700
committerJordan Justen <jordan.l.justen@intel.com>2013-05-23 09:37:12 -0700
commit3919c19468e71fd9590b53e6160db79afb55bfc8 (patch)
tree9077a3b29414dc4b719ac2afd1886a7eeef3a4dc /src/glsl/glsl_symbol_table.h
parent9368604d996a4c6893f9ca84b1a0e863da9c91c0 (diff)
downloadexternal_mesa3d-3919c19468e71fd9590b53e6160db79afb55bfc8.zip
external_mesa3d-3919c19468e71fd9590b53e6160db79afb55bfc8.tar.gz
external_mesa3d-3919c19468e71fd9590b53e6160db79afb55bfc8.tar.bz2
glsl_symbol_table: add interface block namespaces
For interface blocks, there are three separate namespaces for uniform, input and output blocks. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/glsl/glsl_symbol_table.h')
-rw-r--r--src/glsl/glsl_symbol_table.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/glsl_symbol_table.h b/src/glsl/glsl_symbol_table.h
index 9f56027..2753bdf 100644
--- a/src/glsl/glsl_symbol_table.h
+++ b/src/glsl/glsl_symbol_table.h
@@ -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: