1 // 2 // Copyright 2021 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 // OutputSPIRV: Generate SPIR-V from the AST. 7 // 8 9 #ifndef COMPILER_TRANSLATOR_SPIRV_OUTPUTSPIRV_H_ 10 #define COMPILER_TRANSLATOR_SPIRV_OUTPUTSPIRV_H_ 11 12 #include "common/hash_containers.h" 13 #include "compiler/translator/Compiler.h" 14 15 namespace sh 16 { 17 bool OutputSPIRV(TCompiler *compiler, 18 TIntermBlock *root, 19 const ShCompileOptions &compileOptions, 20 const angle::HashMap<int, uint32_t> &uniqueToSpirvIdMap, 21 uint32_t firstUnusedSpirvId); 22 } // namespace sh 23 24 #endif // COMPILER_TRANSLATOR_SPIRV_OUTPUTSPIRV_H_ 25