Hash :
391bda23
Author :
Date :
2018-02-23T11:43:14
Generate code for initializing built-in variables gen_builtin_symbols.py now generates code for initializing built-in variable symbols as well. Some of the variable symbols are static, but some of them also get initialized dynamically based on values in ShBuiltInResources. The static symbols have get functions in a header file so they can be referenced from AST traversers as well without doing a lookup. BUG=angleproject:2267 TEST=angle_unittests, angle_end2end_tests Change-Id: Ida7f3aeb06d2bce0f737f1483b1bd5833aeddd2e Reviewed-on: https://chromium-review.googlesource.com/911768 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
// GENERATED FILE - DO NOT EDIT.
// Generated by gen_builtin_symbols.py using data from builtin_variables.json and
// builtin_function_declarations.txt.
//
// Copyright 2018 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// BuiltIn_autogen.h:
// Compile-time initialized built-ins.
#ifndef COMPILER_TRANSLATOR_BUILTIN_AUTOGEN_H_
#define COMPILER_TRANSLATOR_BUILTIN_AUTOGEN_H_
namespace sh
{
class TVariable;
namespace BuiltInVariable
{
const TVariable *gl_FragColor();
const TVariable *gl_FragCoord();
const TVariable *gl_FragDepth();
const TVariable *gl_FrontFacing();
const TVariable *gl_GlobalInvocationID();
const TVariable *gl_InstanceID();
const TVariable *gl_InvocationID();
const TVariable *gl_LastFragColor();
const TVariable *gl_LastFragColorARM();
const TVariable *gl_Layer();
const TVariable *gl_LayerGS();
const TVariable *gl_LayerVS();
const TVariable *gl_LocalInvocationID();
const TVariable *gl_LocalInvocationIndex();
const TVariable *gl_NumWorkGroups();
const TVariable *gl_PointCoord();
const TVariable *gl_PointSize();
const TVariable *gl_Position();
const TVariable *gl_PrimitiveID();
const TVariable *gl_PrimitiveIDGS();
const TVariable *gl_PrimitiveIDIn();
const TVariable *gl_SecondaryFragColorEXT();
const TVariable *gl_VertexID();
const TVariable *gl_ViewID_OVR();
const TVariable *gl_ViewID_OVRESSL1();
const TVariable *gl_ViewportIndex();
const TVariable *gl_WorkGroupID();
const TVariable *gl_WorkGroupSize();
} // namespace BuiltInVariable
} // namespace sh
#endif // COMPILER_TRANSLATOR_BUILTIN_AUTOGEN_H_