blob: 524c6cf53a69a60942631c82d2a6a6676350be09 [file] [log] [blame]
maxvujovic@gmail.com66ebd012012-05-30 22:18:11 +00001//
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.
5//
6
7#include "compiler/timing/RestrictVertexShaderTiming.h"
8
9void RestrictVertexShaderTiming::visitSymbol(TIntermSymbol* node)
10{
maxvujovic@gmail.com77222c92012-06-04 21:06:05 +000011 if (IsSampler(node->getBasicType())) {
12 ++mNumErrors;
maxvujovic@gmail.com66ebd012012-05-30 22:18:11 +000013 mSink.prefix(EPrefixError);
14 mSink.location(node->getLine());
maxvujovic@gmail.com77222c92012-06-04 21:06:05 +000015 mSink << "Samplers are not permitted in vertex shaders.\n";
maxvujovic@gmail.com66ebd012012-05-30 22:18:11 +000016 }
17}