maxvujovic@gmail.com | 66ebd01 | 2012-05-30 22:18:11 +0000 | [diff] [blame] | 1 | // |
| 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 | |
| 9 | void RestrictVertexShaderTiming::visitSymbol(TIntermSymbol* node) |
| 10 | { |
maxvujovic@gmail.com | 77222c9 | 2012-06-04 21:06:05 +0000 | [diff] [blame] | 11 | if (IsSampler(node->getBasicType())) { |
| 12 | ++mNumErrors; |
maxvujovic@gmail.com | 66ebd01 | 2012-05-30 22:18:11 +0000 | [diff] [blame] | 13 | mSink.prefix(EPrefixError); |
| 14 | mSink.location(node->getLine()); |
maxvujovic@gmail.com | 77222c9 | 2012-06-04 21:06:05 +0000 | [diff] [blame] | 15 | mSink << "Samplers are not permitted in vertex shaders.\n"; |
maxvujovic@gmail.com | 66ebd01 | 2012-05-30 22:18:11 +0000 | [diff] [blame] | 16 | } |
| 17 | } |