diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-10-09 17:56:51 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2014-10-09 17:56:52 +0200 |
commit | 881ceeff428c377d02ae3881beccdbb028385075 (patch) | |
tree | 65bd4335d7f67b81b04e33f2cbb17a41cf966dd8 /src/3rdparty/angle/src/compiler/translator/util.h | |
parent | b3d2c867ed14cd6337d5e32b8750f198b5b7d331 (diff) | |
parent | 106487387d493dab934e19b33bfed55b8df62d67 (diff) |
Merge remote-tracking branch 'origin/5.4' into dev
Change-Id: I05fcd8dc66d9ad0dc76bb7f5bae05c9876bfba14
Diffstat (limited to 'src/3rdparty/angle/src/compiler/translator/util.h')
-rw-r--r-- | src/3rdparty/angle/src/compiler/translator/util.h | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/src/3rdparty/angle/src/compiler/translator/util.h b/src/3rdparty/angle/src/compiler/translator/util.h index 5c214dd4fb..241e2cc1c2 100644 --- a/src/3rdparty/angle/src/compiler/translator/util.h +++ b/src/3rdparty/angle/src/compiler/translator/util.h @@ -9,9 +9,10 @@ #include <stack> -#include "compiler/translator/Types.h" #include "angle_gl.h" -#include "common/shadervars.h" +#include <GLSLANG/ShaderLang.h> + +#include "compiler/translator/Types.h" // atof_clamp is like atof but // 1. it forces C locale, i.e. forcing '.' as decimal point. @@ -32,33 +33,22 @@ bool IsVaryingIn(TQualifier qualifier); bool IsVaryingOut(TQualifier qualifier); bool IsVarying(TQualifier qualifier); InterpolationType GetInterpolationType(TQualifier qualifier); -BlockLayoutType GetBlockLayoutType(TLayoutBlockStorage blockStorage); TString ArrayString(const TType &type); -template <typename VarT> class GetVariableTraverser { public: - GetVariableTraverser(std::vector<VarT> *output); - void traverse(const TType &type, const TString &name); + GetVariableTraverser() {} + + template <typename VarT> + void traverse(const TType &type, const TString &name, std::vector<VarT> *output); protected: // May be overloaded - virtual void visitVariable(VarT *newVar) {} + virtual void visitVariable(ShaderVariable *newVar) {} private: - std::stack<std::vector<VarT> *> mOutputStack; -}; - -struct GetInterfaceBlockFieldTraverser : public GetVariableTraverser<InterfaceBlockField> -{ - public: - GetInterfaceBlockFieldTraverser(std::vector<InterfaceBlockField> *output, bool isRowMajorMatrix); - - private: - virtual void visitVariable(InterfaceBlockField *newField); - - bool mIsRowMajorMatrix; + DISALLOW_COPY_AND_ASSIGN(GetVariableTraverser); }; } |