| 1 | // |
| 2 | // Copyright (c) 2002-2017 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 | // The ValidateVaryingLocations function checks if there exists location conflicts on shader |
| 7 | // varyings. |
| 8 | // |
| 9 | |
| 10 | #ifndef COMPILER_TRANSLATOR_VALIDATEVARYINGLOCATIONS_H_ |
| 11 | #define COMPILER_TRANSLATOR_VALIDATEVARYINGLOCATIONS_H_ |
| 12 | |
| 13 | #include "GLSLANG/ShaderVars.h" |
| 14 | |
| 15 | namespace sh |
| 16 | { |
| 17 | |
| 18 | class TIntermBlock; |
| 19 | class TDiagnostics; |
| 20 | |
| 21 | bool ValidateVaryingLocations(TIntermBlock *root, TDiagnostics *diagnostics, GLenum shaderType); |
| 22 | |
| 23 | } // namespace sh |
| 24 | |
| 25 | #endif |