blob: 21b2d079d39daef4541fae888e4362eb90fca8b2 [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,
21 ShShaderOutput output);
alokp@chromium.org76b82082010-03-24 17:59:39 +000022
Zhenyao Mo05b6b7f2015-03-02 17:08:09 -080023 protected:
zmo@google.com5601ea02011-06-10 18:23:25 +000024 virtual bool writeVariablePrecision(TPrecision);
Jamie Madill02f20dd2013-09-12 12:07:42 -040025 virtual void visitSymbol(TIntermSymbol* node);
Nicolas Capens46485082014-04-15 13:12:50 -040026 virtual TString translateTextureFunction(TString& name);
alokp@chromium.org76b82082010-03-24 17:59:39 +000027};
28
Geoff Lang0a73dd82014-11-19 16:18:08 -050029#endif // COMPILER_TRANSLATOR_OUTPUTGLSL_H_