blob: 64ee92d44e15c7180e92c86b0ae1ea1de4659160 [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
9TOutputESSL::TOutputESSL(TInfoSinkBase& objSink)
10 : TOutputGLSLBase(objSink)
11{
12}
13
14bool TOutputESSL::writeVariablePrecision(TPrecision precision)
15{
16 if (precision == EbpUndefined)
17 return false;
18
19 TInfoSinkBase& out = objSink();
20 out << getPrecisionString(precision);
21 return true;
22}