blob: 03317528d9fa2fafa693e2e0cd3ee06955ebdbdc [file] [log] [blame]
zmo@google.com5601ea02011-06-10 18:23:25 +00001//
2// Copyright (c) 2002-2011 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/OutputESSL.h"
8
daniel@transgaming.com0aa3b5a2012-11-28 19:43:24 +00009TOutputESSL::TOutputESSL(TInfoSinkBase& objSink,
10 ShHashFunction64 hashFunction,
11 NameMap& nameMap,
12 TSymbolTable& symbolTable)
13 : TOutputGLSLBase(objSink, hashFunction, nameMap, symbolTable)
zmo@google.com5601ea02011-06-10 18:23:25 +000014{
15}
16
17bool TOutputESSL::writeVariablePrecision(TPrecision precision)
18{
19 if (precision == EbpUndefined)
20 return false;
21
22 TInfoSinkBase& out = objSink();
23 out << getPrecisionString(precision);
24 return true;
25}