zmo@google.com | 5601ea0 | 2011-06-10 18:23:25 +0000 | [diff] [blame^] | 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 | TOutputESSL::TOutputESSL(TInfoSinkBase& objSink) |
| 10 | : TOutputGLSLBase(objSink) |
| 11 | { |
| 12 | } |
| 13 | |
| 14 | bool 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 | } |