blob: 813f1e944bdaeb510c7f3fd2cb5bffef7f09112b [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
Geoff Lang0a73dd82014-11-19 16:18:08 -05007#ifndef COMPILER_TRANSLATOR_OUTPUTESSL_H_
8#define COMPILER_TRANSLATOR_OUTPUTESSL_H_
zmo@google.com5601ea02011-06-10 18:23:25 +00009
Geoff Lang17732822013-08-29 13:46:49 -040010#include "compiler/translator/OutputGLSLBase.h"
zmo@google.com5601ea02011-06-10 18:23:25 +000011
12class TOutputESSL : public TOutputGLSLBase
13{
14public:
daniel@transgaming.com0aa3b5a2012-11-28 19:43:24 +000015 TOutputESSL(TInfoSinkBase& objSink,
shannon.woods@transgaming.com1d432bb2013-01-25 21:57:28 +000016 ShArrayIndexClampingStrategy clampingStrategy,
daniel@transgaming.com0aa3b5a2012-11-28 19:43:24 +000017 ShHashFunction64 hashFunction,
18 NameMap& nameMap,
Jamie Madill02f20dd2013-09-12 12:07:42 -040019 TSymbolTable& symbolTable,
Olli Etuaho853dc1a2014-11-06 17:25:48 +020020 int shaderVersion,
21 bool forceHighp);
zmo@google.com5601ea02011-06-10 18:23:25 +000022
23protected:
24 virtual bool writeVariablePrecision(TPrecision precision);
Olli Etuaho853dc1a2014-11-06 17:25:48 +020025private:
26 bool mForceHighp;
zmo@google.com5601ea02011-06-10 18:23:25 +000027};
28
Geoff Lang0a73dd82014-11-19 16:18:08 -050029#endif // COMPILER_TRANSLATOR_OUTPUTESSL_H_