1 // 2 // Copyright 2019 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 // NameNamelessUniformBuffers: Gives nameless uniform buffer variables internal names. 7 // 8 // For example: 9 // uniform UniformBuffer { int a; }; 10 // x = a; 11 // becomes: 12 // uniform UniformBuffer { int a; } s123; 13 // x = s123.a; 14 // 15 16 #ifndef COMPILER_TRANSLATOR_TREEOPS_NAMENAMELESSUNIFORMBUFFERS_H_ 17 #define COMPILER_TRANSLATOR_TREEOPS_NAMENAMELESSUNIFORMBUFFERS_H_ 18 19 #include "common/angleutils.h" 20 21 namespace sh 22 { 23 class TCompiler; 24 class TIntermBlock; 25 class TSymbolTable; 26 27 ANGLE_NO_DISCARD bool NameNamelessUniformBuffers(TCompiler *compiler, 28 TIntermBlock *root, 29 TSymbolTable *symbolTable); 30 } // namespace sh 31 32 #endif // COMPILER_TRANSLATOR_TREEOPS_NAMENAMELESSUNIFORMBUFFERS_H_ 33