1// Copyright (c) 2016 The ANGLE Project Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4//
5// Rewrite "-float" to "0.0 - float" to work around unary minus operator on float issue on Intel Mac
6// OSX 10.11.
7
8#ifndef COMPILER_TRANSLATOR_TREEOPS_REWRITEUNARYMINUSOPERATORFLOAT_H_
9#define COMPILER_TRANSLATOR_TREEOPS_REWRITEUNARYMINUSOPERATORFLOAT_H_
10
11class TIntermNode;
12namespace sh
13{
14
15void RewriteUnaryMinusOperatorFloat(TIntermNode *root);
16
17} // namespace sh
18
19#endif // COMPILER_TRANSLATOR_TREEOPS_REWRITEUNARYMINUSOPERATORFLOAT_H_
20