blob: 0d8d11bec66b3d5319bc6843deec3a4437ef8d77 [file] [log] [blame]
Olli Etuaho09b04a22016-12-15 13:30:26 +00001//
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
16namespace sh
17{
18class TDiagnostics;
19class TIntermBlock;
20
21// Check for errors and output error messages with diagnostics.
22// Returns true if there are no errors.
23bool ValidateMultiviewWebGL(TIntermBlock *root,
24 sh::GLenum shaderType,
25 bool multiview2,
26 TDiagnostics *diagnostics);
27
28} // namespace sh
29
30#endif // COMPILER_TRANSLATOR_VALIDATEMULTIVIEWWEBGL_H_