tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RegenerateStructNames.h (1006B)


      1 //
      2 // Copyright 2002 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 
      7 #ifndef COMPILER_TRANSLATOR_TREEOPS_GL_REGENERATESTRUCTNAMES_H_
      8 #define COMPILER_TRANSLATOR_TREEOPS_GL_REGENERATESTRUCTNAMES_H_
      9 
     10 #include "common/angleutils.h"
     11 
     12 namespace sh
     13 {
     14 class TCompiler;
     15 class TIntermBlock;
     16 class TSymbolTable;
     17 
     18 #if defined(ANGLE_ENABLE_GLSL)
     19 [[nodiscard]] bool RegenerateStructNames(TCompiler *compiler,
     20                                         TIntermBlock *root,
     21                                         TSymbolTable *symbolTable);
     22 #else
     23 [[nodiscard]] ANGLE_INLINE bool RegenerateStructNames(TCompiler *compiler,
     24                                                      TIntermBlock *root,
     25                                                      TSymbolTable *symbolTable)
     26 {
     27    UNREACHABLE();
     28    return false;
     29 }
     30 #endif
     31 
     32 }  // namespace sh
     33 
     34 #endif  // COMPILER_TRANSLATOR_TREEOPS_GL_REGENERATESTRUCTNAMES_H_