blob: a636c498254d27bd6425f23af5f64d7c7f019fdf [file] [log] [blame]
zmo@google.com5601ea02011-06-10 18:23:25 +00001//
Jamie Madill02f20dd2013-09-12 12:07:42 -04002// Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved.
zmo@google.com5601ea02011-06-10 18:23:25 +00003// 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,
shannon.woods@transgaming.com1d432bb2013-01-25 21:57:28 +000010 ShArrayIndexClampingStrategy clampingStrategy,
daniel@transgaming.com0aa3b5a2012-11-28 19:43:24 +000011 ShHashFunction64 hashFunction,
12 NameMap& nameMap,
Jamie Madill02f20dd2013-09-12 12:07:42 -040013 TSymbolTable& symbolTable,
14 int shaderVersion)
15 : TOutputGLSLBase(objSink, clampingStrategy, hashFunction, nameMap, symbolTable, shaderVersion)
zmo@google.com5601ea02011-06-10 18:23:25 +000016{
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}