// // Copyright 2018 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // SeparateStructFromUniformDeclarations: Separate struct declarations from uniform declarations. // #include "compiler/translator/tree_ops/SeparateStructFromUniformDeclarations.h" #include "compiler/translator/SymbolTable.h" #include "compiler/translator/tree_util/IntermTraverse.h" #include "compiler/translator/tree_util/ReplaceVariable.h" namespace sh { namespace { // This traverser translates embedded uniform structs into a specifier and declaration. // This makes the declarations easier to move into uniform blocks. class Traverser : public TIntermTraverser { … }; } // anonymous namespace bool SeparateStructFromUniformDeclarations(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable) { … } } // namespace sh