blob: 6947fdef2bfd0eb247df813a116400bae50012b4 [file] [log] [blame]
alokp@chromium.orgb59a7782010-11-24 18:38:33 +00001//
2// Copyright (c) 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
Geoff Lang0a73dd82014-11-19 16:18:08 -05007#ifndef COMPILER_TRANSLATOR_VALIDATELIMITATIONS_H_
8#define COMPILER_TRANSLATOR_VALIDATELIMITATIONS_H_
9
Jamie Madillb1a85f42014-08-19 15:23:24 -040010#include "compiler/translator/IntermNode.h"
alokp@chromium.orgb59a7782010-11-24 18:38:33 +000011
Jamie Madill45bcc782016-11-07 13:58:48 -050012namespace sh
13{
14
Olli Etuaho77ba4082016-12-16 12:01:18 +000015class TDiagnostics;
alokp@chromium.orgb59a7782010-11-24 18:38:33 +000016
Olli Etuaho9ec79392017-03-31 23:04:23 +030017// Returns true if the given shader does not exceed the minimum functionality mandated in GLSL ES
18// 1.00 spec Appendix A.
19bool ValidateLimitations(TIntermNode *root,
20 GLenum shaderType,
21 const TSymbolTable &symbolTable,
22 int shaderVersion,
23 TDiagnostics *diagnostics);
alokp@chromium.orgb59a7782010-11-24 18:38:33 +000024
Jamie Madill45bcc782016-11-07 13:58:48 -050025} // namespace sh
26
Jamie Madilld7b1ab52016-12-12 14:42:19 -050027#endif // COMPILER_TRANSLATOR_VALIDATELIMITATIONS_H_