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