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_INITIALIZE_H_
8 #define COMPILER_TRANSLATOR_INITIALIZE_H_
9 
10 #include "compiler/translator/Common.h"
11 #include "compiler/translator/Compiler.h"
12 #include "compiler/translator/SymbolTable.h"
13 
14 namespace sh
15 {
16 
17 void InitExtensionBehavior(const ShBuiltInResources &resources,
18                            TExtensionBehavior &extensionBehavior);
19 
20 // Resets the behavior of the extensions listed in |extensionBehavior| to the
21 // undefined state. These extensions will only be those initially supported in
22 // the ShBuiltInResources object for this compiler instance. All other
23 // extensions will remain unsupported.
24 void ResetExtensionBehavior(const ShBuiltInResources &resources,
25                             TExtensionBehavior &extensionBehavior,
26                             const ShCompileOptions compileOptions);
27 
28 }  // namespace sh
29 
30 #endif  // COMPILER_TRANSLATOR_INITIALIZE_H_
31