blob: 1dbb759f3d95b35d9e5eca1e0cdaf3ca7392928d [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
zmo@google.com5601ea02011-06-10 18:23:25 +000012class TOutputGLSL : public TOutputGLSLBase
alokp@chromium.org76b82082010-03-24 17:59:39 +000013{
Zhenyao Mo05b6b7f2015-03-02 17:08:09 -080014 public:
daniel@transgaming.com0aa3b5a2012-11-28 19:43:24 +000015 TOutputGLSL(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,
Zhenyao Mo05b6b7f2015-03-02 17:08:09 -080020 int shaderVersion,
Qiankun Miao705a9192016-08-29 10:05:27 +080021 ShShaderOutput output,
22 ShCompileOptions compileOptions);
alokp@chromium.org76b82082010-03-24 17:59:39 +000023
Zhenyao Mo05b6b7f2015-03-02 17:08:09 -080024 protected:
Corentin Walleze5a1f272015-08-21 02:58:25 +020025 bool writeVariablePrecision(TPrecision) override;
26 void visitSymbol(TIntermSymbol *node) override;
27 TString translateTextureFunction(TString &name) override;
alokp@chromium.org76b82082010-03-24 17:59:39 +000028};
29
Geoff Lang0a73dd82014-11-19 16:18:08 -050030#endif // COMPILER_TRANSLATOR_OUTPUTGLSL_H_