blob: 808357719452440b60de800ee85fee938b8db185 [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
Jamie Madill45bcc782016-11-07 13:58:48 -050012namespace sh
13{
Zhenyao Mo72111912016-07-20 17:45:56 -070014class TIntermNode;
Zhenyao Mo4a667fe2014-02-11 12:35:01 -080015
Zhenyao Mo72111912016-07-20 17:45:56 -070016typedef std::vector<sh::ShaderVariable> InitVariableList;
Zhenyao Mo4a667fe2014-02-11 12:35:01 -080017
Corentin Wallez509e4562016-08-25 14:55:44 -040018// This function cannot currently initialize structures containing arrays for an ESSL 1.00 backend.
Zhenyao Mo72111912016-07-20 17:45:56 -070019void InitializeVariables(TIntermNode *root, const InitVariableList &vars);
Jamie Madill45bcc782016-11-07 13:58:48 -050020} // namespace sh
Zhenyao Mo4a667fe2014-02-11 12:35:01 -080021
Geoff Lang0a73dd82014-11-19 16:18:08 -050022#endif // COMPILER_TRANSLATOR_INITIALIZEVARIABLES_H_