1*8975f5c5SAndroid Build Coastguard Worker // 2*8975f5c5SAndroid Build Coastguard Worker // Copyright 2002 The ANGLE Project Authors. All rights reserved. 3*8975f5c5SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 4*8975f5c5SAndroid Build Coastguard Worker // found in the LICENSE file. 5*8975f5c5SAndroid Build Coastguard Worker // 6*8975f5c5SAndroid Build Coastguard Worker 7*8975f5c5SAndroid Build Coastguard Worker #ifndef COMPILER_TRANSLATOR_INITIALIZE_H_ 8*8975f5c5SAndroid Build Coastguard Worker #define COMPILER_TRANSLATOR_INITIALIZE_H_ 9*8975f5c5SAndroid Build Coastguard Worker 10*8975f5c5SAndroid Build Coastguard Worker #include "compiler/translator/Common.h" 11*8975f5c5SAndroid Build Coastguard Worker #include "compiler/translator/Compiler.h" 12*8975f5c5SAndroid Build Coastguard Worker #include "compiler/translator/SymbolTable.h" 13*8975f5c5SAndroid Build Coastguard Worker 14*8975f5c5SAndroid Build Coastguard Worker namespace sh 15*8975f5c5SAndroid Build Coastguard Worker { 16*8975f5c5SAndroid Build Coastguard Worker 17*8975f5c5SAndroid Build Coastguard Worker void InitExtensionBehavior(const ShBuiltInResources &resources, 18*8975f5c5SAndroid Build Coastguard Worker TExtensionBehavior &extensionBehavior); 19*8975f5c5SAndroid Build Coastguard Worker 20*8975f5c5SAndroid Build Coastguard Worker // Resets the behavior of the extensions listed in |extensionBehavior| to the 21*8975f5c5SAndroid Build Coastguard Worker // undefined state. These extensions will only be those initially supported in 22*8975f5c5SAndroid Build Coastguard Worker // the ShBuiltInResources object for this compiler instance. All other 23*8975f5c5SAndroid Build Coastguard Worker // extensions will remain unsupported. 24*8975f5c5SAndroid Build Coastguard Worker void ResetExtensionBehavior(const ShBuiltInResources &resources, 25*8975f5c5SAndroid Build Coastguard Worker TExtensionBehavior &extensionBehavior, 26*8975f5c5SAndroid Build Coastguard Worker const ShCompileOptions &compileOptions); 27*8975f5c5SAndroid Build Coastguard Worker 28*8975f5c5SAndroid Build Coastguard Worker } // namespace sh 29*8975f5c5SAndroid Build Coastguard Worker 30*8975f5c5SAndroid Build Coastguard Worker #endif // COMPILER_TRANSLATOR_INITIALIZE_H_ 31