166ebd0143ea40a9beb83eab5d86e24f52825b3famaxvujovic@gmail.com// 266ebd0143ea40a9beb83eab5d86e24f52825b3famaxvujovic@gmail.com// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. 366ebd0143ea40a9beb83eab5d86e24f52825b3famaxvujovic@gmail.com// Use of this source code is governed by a BSD-style license that can be 466ebd0143ea40a9beb83eab5d86e24f52825b3famaxvujovic@gmail.com// found in the LICENSE file. 566ebd0143ea40a9beb83eab5d86e24f52825b3famaxvujovic@gmail.com// 666ebd0143ea40a9beb83eab5d86e24f52825b3famaxvujovic@gmail.com 717732823f9c21bdba9cc51ffaceb545ce3857a8cGeoff Lang#include "compiler/translator/timing/RestrictVertexShaderTiming.h" 866ebd0143ea40a9beb83eab5d86e24f52825b3famaxvujovic@gmail.com 966ebd0143ea40a9beb83eab5d86e24f52825b3famaxvujovic@gmail.comvoid RestrictVertexShaderTiming::visitSymbol(TIntermSymbol* node) 1066ebd0143ea40a9beb83eab5d86e24f52825b3famaxvujovic@gmail.com{ 1177222c9715408518c21a7f359b8f0f9af8c4bfddmaxvujovic@gmail.com if (IsSampler(node->getBasicType())) { 1277222c9715408518c21a7f359b8f0f9af8c4bfddmaxvujovic@gmail.com ++mNumErrors; 13075edd84dd682b91279132317d34b09e8028ae6fJamie Madill mSink.message(EPrefixError, 14075edd84dd682b91279132317d34b09e8028ae6fJamie Madill node->getLine(), 15075edd84dd682b91279132317d34b09e8028ae6fJamie Madill "Samplers are not permitted in vertex shaders.\n"); 1666ebd0143ea40a9beb83eab5d86e24f52825b3famaxvujovic@gmail.com } 1766ebd0143ea40a9beb83eab5d86e24f52825b3famaxvujovic@gmail.com} 18