2 // Copyright (c) 2012 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.
7 #ifndef COMPILER_TIMING_RESTRICT_VERTEX_SHADER_TIMING_H_
8 #define COMPILER_TIMING_RESTRICT_VERTEX_SHADER_TIMING_H_
10 #include "compiler/translator/IntermNode.h"
11 #include "compiler/translator/InfoSink.h"
15 class RestrictVertexShaderTiming : public TIntermTraverser {
17 RestrictVertexShaderTiming(TInfoSinkBase& sink)
18 : TIntermTraverser(true, false, false)
22 void enforceRestrictions(TIntermNode* root) { root->traverse(this); }
23 int numErrors() { return mNumErrors; }
25 virtual void visitSymbol(TIntermSymbol*);
31 #endif // COMPILER_TIMING_RESTRICT_VERTEX_SHADER_TIMING_H_