michael@0: // michael@0: // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: #include "compiler/timing/RestrictVertexShaderTiming.h" michael@0: michael@0: void RestrictVertexShaderTiming::visitSymbol(TIntermSymbol* node) michael@0: { michael@0: if (IsSampler(node->getBasicType())) { michael@0: ++mNumErrors; michael@0: mSink.message(EPrefixError, michael@0: node->getLine(), michael@0: "Samplers are not permitted in vertex shaders"); michael@0: } michael@0: }