michael@0: // michael@0: // Copyright (c) 2002-2011 The ANGLE Project Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: // michael@0: michael@0: #include "compiler/OutputESSL.h" michael@0: michael@0: TOutputESSL::TOutputESSL(TInfoSinkBase& objSink, michael@0: ShArrayIndexClampingStrategy clampingStrategy, michael@0: ShHashFunction64 hashFunction, michael@0: NameMap& nameMap, michael@0: TSymbolTable& symbolTable) michael@0: : TOutputGLSLBase(objSink, clampingStrategy, hashFunction, nameMap, symbolTable) michael@0: { michael@0: } michael@0: michael@0: bool TOutputESSL::writeVariablePrecision(TPrecision precision) michael@0: { michael@0: if (precision == EbpUndefined) michael@0: return false; michael@0: michael@0: TInfoSinkBase& out = objSink(); michael@0: out << getPrecisionString(precision); michael@0: return true; michael@0: }