xref: /aosp_15_r20/external/angle/src/compiler/translator/tree_ops/RewriteDfdy.h (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1 //
2 // Copyright 2019 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 // RewriteDfdy: Transform dFdx and dFdy according to pre-rotation and viewport y-flip.
7 
8 #ifndef COMPILER_TRANSLATOR_TREEOPS_REWRITEDFDY_H_
9 #define COMPILER_TRANSLATOR_TREEOPS_REWRITEDFDY_H_
10 
11 #include "common/angleutils.h"
12 #include "compiler/translator/Compiler.h"
13 
14 namespace sh
15 {
16 
17 class TCompiler;
18 class TIntermBlock;
19 class TSymbolTable;
20 class SpecConst;
21 class DriverUniform;
22 
23 [[nodiscard]] bool RewriteDfdy(TCompiler *compiler,
24                                TIntermBlock *root,
25                                TSymbolTable *symbolTable,
26                                int shaderVersion,
27                                SpecConst *specConst,
28                                const DriverUniform *driverUniforms);
29 
30 }  // namespace sh
31 
32 #endif  // COMPILER_TRANSLATOR_TREEOPS_REWRITEDFDY_H_
33