Olli Etuaho | 09b04a2 | 2016-12-15 13:30:26 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright (c) 2002-2016 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 | // ValidateMultiviewWebGL.h: |
| 7 | // Validate the AST according to rules in the WEBGL_multiview extension spec. Only covers those |
| 8 | // rules not already covered in ParseContext. |
| 9 | // |
| 10 | |
| 11 | #ifndef COMPILER_TRANSLATOR_VALIDATEMULTIVIEWWEBGL_H_ |
| 12 | #define COMPILER_TRANSLATOR_VALIDATEMULTIVIEWWEBGL_H_ |
| 13 | |
| 14 | #include "GLSLANG/ShaderVars.h" |
| 15 | |
| 16 | namespace sh |
| 17 | { |
| 18 | class TDiagnostics; |
| 19 | class TIntermBlock; |
| 20 | |
| 21 | // Check for errors and output error messages with diagnostics. |
| 22 | // Returns true if there are no errors. |
| 23 | bool ValidateMultiviewWebGL(TIntermBlock *root, |
| 24 | sh::GLenum shaderType, |
| 25 | bool multiview2, |
| 26 | TDiagnostics *diagnostics); |
| 27 | |
| 28 | } // namespace sh |
| 29 | |
| 30 | #endif // COMPILER_TRANSLATOR_VALIDATEMULTIVIEWWEBGL_H_ |