1 // 2 // Copyright 2022 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 // EmulateDithering: Adds dithering code to fragment shader outputs based on a specialization 7 // constant control value. 8 // 9 10 #ifndef COMPILER_TRANSLATOR_TREEOPS_SPIRV_EMULATEDITHERING_H_ 11 #define COMPILER_TRANSLATOR_TREEOPS_SPIRV_EMULATEDITHERING_H_ 12 13 #include "common/angleutils.h" 14 #include "compiler/translator/Compiler.h" 15 16 namespace sh 17 { 18 class TCompiler; 19 class TIntermBlock; 20 class TSymbolTable; 21 class SpecConst; 22 class DriverUniform; 23 24 [[nodiscard]] bool EmulateDithering(TCompiler *compiler, 25 const ShCompileOptions &compileOptions, 26 TIntermBlock *root, 27 TSymbolTable *symbolTable, 28 SpecConst *specConst, 29 const DriverUniform *driverUniforms); 30 } // namespace sh 31 32 #endif // COMPILER_TRANSLATOR_TREEOPS_SPIRV_EMULATEDITHERING_H_ 33