1 //
2 // Copyright 2010 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 
7 #ifndef COMPILER_TRANSLATOR_VALIDATELIMITATIONS_H_
8 #define COMPILER_TRANSLATOR_VALIDATELIMITATIONS_H_
9 
10 #include "compiler/translator/IntermNode.h"
11 
12 namespace sh
13 {
14 
15 class TDiagnostics;
16 
17 // Returns true if the given shader does not exceed the minimum functionality mandated in GLSL ES
18 // 1.00 spec Appendix A.
19 bool ValidateLimitations(TIntermNode *root,
20                          GLenum shaderType,
21                          TSymbolTable *symbolTable,
22                          TDiagnostics *diagnostics);
23 
24 }  // namespace sh
25 
26 #endif  // COMPILER_TRANSLATOR_VALIDATELIMITATIONS_H_
27