2 // Copyright (c) 2013 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 #include "compiler/translator/IntermNode.h"
13 class ValidateOutputs : public TIntermTraverser
16 ValidateOutputs(TInfoSinkBase& sink, int maxDrawBuffers);
18 int numErrors() const { return mNumErrors; }
20 virtual void visitSymbol(TIntermSymbol*);
26 bool mHasUnspecifiedOutputLocation;
28 typedef std::map<int, TIntermSymbol*> OutputMap;
30 std::set<TString> mVisitedSymbols;
32 void error(TSourceLoc loc, const char *reason, const char* token);