summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_symbol_table.h
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2015-02-26 12:15:16 +0100
committerTapani Pälli <[email protected]>2015-11-12 09:50:13 +0200
commitd6a61673543deeebac773801cbd717b7a342626e (patch)
tree80d598774300083bff3ae2f9fe384c49ab9ffb09 /src/glsl/glsl_symbol_table.h
parentd4fdb84f80dd3dbad2b71ea6e877f24dc625aa2a (diff)
glsl: Add API to put default precision qualifiers in the symbol table
These have scoping rules that match the ones defined for other things such as variables, so we want them in the symbol table. Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/glsl/glsl_symbol_table.h')
-rw-r--r--src/glsl/glsl_symbol_table.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/glsl_symbol_table.h b/src/glsl/glsl_symbol_table.h
index e32b88b8699..5d654e5e6a7 100644
--- a/src/glsl/glsl_symbol_table.h
+++ b/src/glsl/glsl_symbol_table.h
@@ -72,6 +72,7 @@ struct glsl_symbol_table {
bool add_function(ir_function *f);
bool add_interface(const char *name, const glsl_type *i,
enum ir_variable_mode mode);
+ bool add_default_precision_qualifier(const char *type_name, int precision);
/*@}*/
/**
@@ -88,6 +89,7 @@ struct glsl_symbol_table {
ir_function *get_function(const char *name);
const glsl_type *get_interface(const char *name,
enum ir_variable_mode mode);
+ int get_default_precision_qualifier(const char *type_name);
/*@}*/
/**