1//
2// Copyright (c) 2002-2013 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/translator/OutputESSL.h"
8
9TOutputESSL::TOutputESSL(TInfoSinkBase& objSink,
10                         ShArrayIndexClampingStrategy clampingStrategy,
11                         ShHashFunction64 hashFunction,
12                         NameMap& nameMap,
13                         TSymbolTable& symbolTable,
14                         int shaderVersion)
15    : TOutputGLSLBase(objSink, clampingStrategy, hashFunction, nameMap, symbolTable, shaderVersion)
16{
17}
18
19bool TOutputESSL::writeVariablePrecision(TPrecision precision)
20{
21    if (precision == EbpUndefined)
22        return false;
23
24    TInfoSinkBase& out = objSink();
25    out << getPrecisionString(precision);
26    return true;
27}
28