1 // 2 // Copyright 2020 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_MSL_CONVERTUNSUPPORTEDCONSTRUCTORSTOFUNCTIONCALLS_H_ 8 #define COMPILER_TRANSLATOR_TREEOPS_MSL_CONVERTUNSUPPORTEDCONSTRUCTORSTOFUNCTIONCALLS_H_ 9 10 #include "compiler/translator/Compiler.h" 11 12 namespace sh 13 { 14 15 class TCompiler; 16 class TInterBlock; 17 class SymbolEnv; 18 19 // Adds explicit type casts into the AST where casting is done implicitly. 20 [[nodiscard]] bool ConvertUnsupportedConstructorsToFunctionCalls(TCompiler &compiler, 21 TIntermBlock &root); 22 23 } // namespace sh 24 25 #endif // COMPILER_TRANSLATOR_TREEOPS_MSL_CONVERTUNSUPPORTEDCONSTRUCTORSTOFUNCTIONCALLS_H_ 26