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_TRANSLATORMETALDIRECT_EMITMETAL_H_ 8 #define COMPILER_TRANSLATOR_TRANSLATORMETALDIRECT_EMITMETAL_H_ 9 10 #include "common/angleutils.h" 11 #include "compiler/translator/Compiler.h" 12 #include "compiler/translator/TranslatorMetalDirect/IdGen.h" 13 #include "compiler/translator/TranslatorMetalDirect/ProgramPrelude.h" 14 #include "compiler/translator/TranslatorMetalDirect/RewriteGlobalQualifierDecls.h" 15 #include "compiler/translator/TranslatorMetalDirect/RewritePipelines.h" 16 #include "compiler/translator/TranslatorMetalDirect/SymbolEnv.h" 17 18 namespace sh 19 { 20 21 // Walks the AST and emits Metal code. 22 ANGLE_NO_DISCARD bool EmitMetal(TCompiler &compiler, 23 TIntermBlock &root, 24 IdGen &idGen, 25 const PipelineStructs &pipelineStructs, 26 const Invariants &invariants, 27 SymbolEnv &symbolEnv, 28 const ProgramPreludeConfig &ppc, 29 TSymbolTable *symbolTable); 30 31 } // namespace sh 32 33 #endif // COMPILER_TRANSLATOR_TRANSLATORMETALDIRECT_EMITMETAL_H_ 34