commit | 1df16022326037202654be35b72a9d12a76f00c2 | [log] [tgz] |
---|---|---|
author | Corentin Wallez <cwallez@chromium.org> | Thu Oct 27 08:16:56 2016 -0400 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Oct 31 19:29:57 2016 +0000 |
tree | 9bbbbf97505780b30ab7f37e1ee0d2161c100da9 | |
parent | 698e36ed7be17065a83f06aed24b742a6c1b9602 [diff] [blame] |
TranslatorGLSL: collect variables when flattening pramga invariant all BUG=chromium:659472 Change-Id: Icfeada9f09fff5d28eb3f4fafb2c94d57598af1f Reviewed-on: https://chromium-review.googlesource.com/403849 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/compiler/translator/Compiler.cpp b/src/compiler/translator/Compiler.cpp index c3812f9..6c8a9d6 100644 --- a/src/compiler/translator/Compiler.cpp +++ b/src/compiler/translator/Compiler.cpp
@@ -879,6 +879,16 @@ } } +bool TCompiler::shouldCollectVariables(ShCompileOptions compileOptions) +{ + return (compileOptions & SH_VARIABLES) != 0; +} + +bool TCompiler::wereVariablesCollected() const +{ + return variablesCollected; +} + bool TCompiler::enforcePackingRestrictions() { VariablePacker packer;