blob: a825a933e1794978087ea21745a47c8645d3c032 [file] [log] [blame]
alokp@chromium.org76b82082010-03-24 17:59:39 +00001//
Jamie Madill02f20dd2013-09-12 12:07:42 -04002// Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved.
alokp@chromium.org76b82082010-03-24 17:59:39 +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_OUTPUTGLSL_H_
8#define COMPILER_TRANSLATOR_OUTPUTGLSL_H_
alokp@chromium.org76b82082010-03-24 17:59:39 +00009
Geoff Lang17732822013-08-29 13:46:49 -040010#include "compiler/translator/OutputGLSLBase.h"
alokp@chromium.org4e89d232010-05-14 19:37:21 +000011
Jamie Madill45bcc782016-11-07 13:58:48 -050012namespace sh
13{
14
zmo@google.com5601ea02011-06-10 18:23:25 +000015class TOutputGLSL : public TOutputGLSLBase
alokp@chromium.org76b82082010-03-24 17:59:39 +000016{
Zhenyao Mo05b6b7f2015-03-02 17:08:09 -080017 public:
daniel@transgaming.com0aa3b5a2012-11-28 19:43:24 +000018 TOutputGLSL(TInfoSinkBase& objSink,
shannon.woods@transgaming.com1d432bb2013-01-25 21:57:28 +000019 ShArrayIndexClampingStrategy clampingStrategy,
daniel@transgaming.com0aa3b5a2012-11-28 19:43:24 +000020 ShHashFunction64 hashFunction,
21 NameMap& nameMap,
Jamie Madill02f20dd2013-09-12 12:07:42 -040022 TSymbolTable& symbolTable,
Zhenyao Mo05b6b7f2015-03-02 17:08:09 -080023 int shaderVersion,
Qiankun Miao705a9192016-08-29 10:05:27 +080024 ShShaderOutput output,
25 ShCompileOptions compileOptions);
alokp@chromium.org76b82082010-03-24 17:59:39 +000026
Zhenyao Mo05b6b7f2015-03-02 17:08:09 -080027 protected:
Corentin Walleze5a1f272015-08-21 02:58:25 +020028 bool writeVariablePrecision(TPrecision) override;
29 void visitSymbol(TIntermSymbol *node) override;
30 TString translateTextureFunction(TString &name) override;
alokp@chromium.org76b82082010-03-24 17:59:39 +000031};
32
Jamie Madill45bcc782016-11-07 13:58:48 -050033} // namespace sh
34
Geoff Lang0a73dd82014-11-19 16:18:08 -050035#endif // COMPILER_TRANSLATOR_OUTPUTGLSL_H_