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.
6
// This mutating tree traversal flips the output of dFdy() to account for framebuffer flipping.
9
// To: (dFdy(p) * viewportYScale)
11
// See http://anglebug.com/3487
13
#ifndef COMPILER_TRANSLATOR_TREEOPS_FLIP_DFDY_H_
14
#define COMPILER_TRANSLATOR_TREEOPS_FLIP_DFDY_H_
16
#include "common/angleutils.h"
26
ANGLE_NO_DISCARD bool RewriteDfdy(TCompiler *compiler,
28
const TSymbolTable &symbolTable,
30
TIntermBinary *viewportYScale);
34
#endif // COMPILER_TRANSLATOR_TREEOPS_FLIP_DFDY_H_