diff options
Diffstat (limited to 'src/3rdparty/angle/src/compiler/timing/RestrictVertexShaderTiming.cpp')
-rw-r--r-- | src/3rdparty/angle/src/compiler/timing/RestrictVertexShaderTiming.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/3rdparty/angle/src/compiler/timing/RestrictVertexShaderTiming.cpp b/src/3rdparty/angle/src/compiler/timing/RestrictVertexShaderTiming.cpp new file mode 100644 index 0000000000..524c6cf53a --- /dev/null +++ b/src/3rdparty/angle/src/compiler/timing/RestrictVertexShaderTiming.cpp @@ -0,0 +1,17 @@ +// +// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// + +#include "compiler/timing/RestrictVertexShaderTiming.h" + +void RestrictVertexShaderTiming::visitSymbol(TIntermSymbol* node) +{ + if (IsSampler(node->getBasicType())) { + ++mNumErrors; + mSink.prefix(EPrefixError); + mSink.location(node->getLine()); + mSink << "Samplers are not permitted in vertex shaders.\n"; + } +} |