Edit

kc3-lang/angle/src/compiler/translator/ParseContext_autogen.h

Branch :

  • Show log

    Commit

  • Author : Clemen Deng
    Date : 2019-07-18 15:47:31
    Hash : 486f381f
    Message : Add desktop GL built-in functions to symbol table Added GL built-in functions to symbol table autogeneration Built-in lookup now checks against spec and returns GL symbols when appropriate. Bug: angleproject:3719 Change-Id: I74786150f6063b40e13aebcb2eb9ea35e4ecaa53 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1731550 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Clemen Deng <clemendeng@google.com>

  • src/compiler/translator/ParseContext_autogen.h
  • // GENERATED FILE - DO NOT EDIT.
    // Generated by gen_builtin_symbols.py using data from builtin_variables.json and
    // builtin_function_declarations.txt.
    //
    // Copyright 2019 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.
    //
    // ParseContext_autogen.h:
    //   Helpers for built-in related checks.
    
    #ifndef COMPILER_TRANSLATOR_PARSECONTEXT_AUTOGEN_H_
    #define COMPILER_TRANSLATOR_PARSECONTEXT_AUTOGEN_H_
    
    namespace sh
    {
    
    namespace BuiltInGroup
    {
    
    bool isTextureOffsetNoBias(const TFunction *func)
    {
        int id = func->uniqueId().get();
        return id >= 1113 && id <= 1259;
    }
    bool isTextureOffsetBias(const TFunction *func)
    {
        int id = func->uniqueId().get();
        return id >= 1260 && id <= 1294;
    }
    bool isTextureGatherOffset(const TFunction *func)
    {
        int id = func->uniqueId().get();
        return id >= 1346 && id <= 1388;
    }
    bool isTextureGather(const TFunction *func)
    {
        int id = func->uniqueId().get();
        return id >= 1308 && id <= 1388;
    }
    bool isAtomicMemory(const TFunction *func)
    {
        int id = func->uniqueId().get();
        return id >= 1450 && id <= 1467;
    }
    bool isImageLoad(const TFunction *func)
    {
        int id = func->uniqueId().get();
        return id >= 2104 && id <= 2136;
    }
    bool isImageStore(const TFunction *func)
    {
        int id = func->uniqueId().get();
        return id >= 2137 && id <= 2169;
    }
    bool isImage(const TFunction *func)
    {
        int id = func->uniqueId().get();
        return id >= 1468 && id <= 2169;
    }
    
    }  // namespace BuiltInGroup
    
    }  // namespace sh
    
    #endif  // COMPILER_TRANSLATOR_PARSECONTEXT_AUTOGEN_H_