blob: dce1083f66bf6e1d2e52aa4da6ebeb0d40124002 [file] [log] [blame]
Zhenyao Mo4a667fe2014-02-11 12:35:01 -08001//
2// Copyright (c) 2002-2013 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
Geoff Lang0a73dd82014-11-19 16:18:08 -05007#ifndef COMPILER_TRANSLATOR_INITIALIZEVARIABLES_H_
8#define COMPILER_TRANSLATOR_INITIALIZEVARIABLES_H_
Zhenyao Mo4a667fe2014-02-11 12:35:01 -08009
Zhenyao Mo72111912016-07-20 17:45:56 -070010#include <GLSLANG/ShaderLang.h>
Zhenyao Mo4a667fe2014-02-11 12:35:01 -080011
Zhenyao Mo72111912016-07-20 17:45:56 -070012class TIntermNode;
Zhenyao Mo4a667fe2014-02-11 12:35:01 -080013
Zhenyao Mo72111912016-07-20 17:45:56 -070014typedef std::vector<sh::ShaderVariable> InitVariableList;
Zhenyao Mo4a667fe2014-02-11 12:35:01 -080015
Corentin Wallez509e4562016-08-25 14:55:44 -040016// This function cannot currently initialize structures containing arrays for an ESSL 1.00 backend.
Zhenyao Mo72111912016-07-20 17:45:56 -070017void InitializeVariables(TIntermNode *root, const InitVariableList &vars);
Zhenyao Mo4a667fe2014-02-11 12:35:01 -080018
Geoff Lang0a73dd82014-11-19 16:18:08 -050019#endif // COMPILER_TRANSLATOR_INITIALIZEVARIABLES_H_