diff options
author | Torne (Richard Coles) <torne@google.com> | 2014-10-27 14:57:29 +0000 |
---|---|---|
committer | Torne (Richard Coles) <torne@google.com> | 2014-10-27 14:57:29 +0000 |
commit | bfedac5beb763c8fb23f04230925c71708e98051 (patch) | |
tree | 8827d12dad04c9325a1c8845b043de40f2459191 /src/compiler/translator/util.h | |
parent | a913a0a5a5cf6315565b99822a18138b67caf7ed (diff) | |
parent | 2335970093f750ed465f34ae654cd84fe01c79c5 (diff) | |
download | angle-bfedac5beb763c8fb23f04230925c71708e98051.tar.gz |
Merge from Chromium at DEPS revision 614f7b807940
This commit was generated by merge_to_master.py.
Change-Id: I739e5f1f44d400e041948db14ccea8a53e136f11
Diffstat (limited to 'src/compiler/translator/util.h')
-rw-r--r-- | src/compiler/translator/util.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/compiler/translator/util.h b/src/compiler/translator/util.h index 241e2cc1..fb530875 100644 --- a/src/compiler/translator/util.h +++ b/src/compiler/translator/util.h @@ -24,6 +24,8 @@ extern bool atof_clamp(const char *str, float *value); // Return false if overflow happens. extern bool atoi_clamp(const char *str, int *value); +class TSymbolTable; + namespace sh { @@ -38,7 +40,7 @@ TString ArrayString(const TType &type); class GetVariableTraverser { public: - GetVariableTraverser() {} + GetVariableTraverser(const TSymbolTable &symbolTable); template <typename VarT> void traverse(const TType &type, const TString &name, std::vector<VarT> *output); @@ -48,6 +50,14 @@ class GetVariableTraverser virtual void visitVariable(ShaderVariable *newVar) {} private: + // Helper function called by traverse() to fill specific fields + // for attributes/varyings/uniforms. + template <typename VarT> + void setTypeSpecificInfo( + const TType &type, const TString &name, VarT *variable) {} + + const TSymbolTable &mSymbolTable; + DISALLOW_COPY_AND_ASSIGN(GetVariableTraverser); }; |