blob: 57c01eb3598117a53f74d4abb3c34b360165ae3d [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;
Jamie Madill075edd82013-07-08 13:30:19 -040013 mSink.message(EPrefixError,
14 node->getLine(),
15 "Samplers are not permitted in vertex shaders.\n");
maxvujovic@gmail.com66ebd012012-05-30 22:18:11 +000016 }
17}