blob: c43ce3417a26f40ff3f6f3393bcee313dd3e611c [file] [log] [blame]
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +00001//
shannonwoods@chromium.org2ac0be92013-05-30 00:02:27 +00002// Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved.
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +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_INITIALIZE_H_
8#define COMPILER_TRANSLATOR_INITIALIZE_H_
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +00009
Geoff Lang17732822013-08-29 13:46:49 -040010#include "compiler/translator/Common.h"
Jamie Madilld4a3a312014-06-25 16:04:56 -040011#include "compiler/translator/Compiler.h"
Geoff Lang17732822013-08-29 13:46:49 -040012#include "compiler/translator/SymbolTable.h"
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000013
Jamie Madill183bde52014-07-02 15:31:19 -040014void InsertBuiltInFunctions(sh::GLenum type, ShShaderSpec spec, const ShBuiltInResources &resources, TSymbolTable &table);
daniel@transgaming.com4f39fd92010-03-08 20:26:45 +000015
Jamie Madill183bde52014-07-02 15:31:19 -040016void IdentifyBuiltIns(sh::GLenum type, ShShaderSpec spec,
alokp@chromium.org4888ceb2010-10-01 21:13:12 +000017 const ShBuiltInResources& resources,
alokp@chromium.orge4249f02010-07-26 18:13:52 +000018 TSymbolTable& symbolTable);
19
alokp@chromium.org4888ceb2010-10-01 21:13:12 +000020void InitExtensionBehavior(const ShBuiltInResources& resources,
alokp@chromium.orgad771eb2010-09-07 17:36:23 +000021 TExtensionBehavior& extensionBehavior);
22
David Yen0fbd1282015-02-02 14:46:09 -080023// Resets the behavior of the extensions listed in |extensionBehavior| to the
24// undefined state. These extensions will only be those initially supported in
25// the ShBuiltInResources object for this compiler instance. All other
26// extensions will remain unsupported.
27void ResetExtensionBehavior(TExtensionBehavior &extensionBehavior);
28
Geoff Lang0a73dd82014-11-19 16:18:08 -050029#endif // COMPILER_TRANSLATOR_INITIALIZE_H_