| // GENERATED FILE - DO NOT EDIT. |
| // Generated by gen_builtin_symbols.py using data from builtin_variables.json and |
| // builtin_function_declarations.txt. |
| // |
| // Copyright 2020 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_ESSL_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 >= 3060 && id <= 3129; |
| } |
| bool isTextureOffsetBias(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3130 && id <= 3149; |
| } |
| bool isTextureGatherOffsetsComp(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3187 && id <= 3199; |
| } |
| bool isTextureGatherOffsetsNoComp(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3200 && id <= 3215; |
| } |
| bool isTextureGatherOffsets(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3187 && id <= 3215; |
| } |
| bool isTextureGatherOffsetComp(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3216 && id <= 3221; |
| } |
| bool isTextureGatherOffsetNoComp(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3222 && id <= 3229; |
| } |
| bool isTextureGatherOffset(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3216 && id <= 3229; |
| } |
| bool isTextureGather(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3163 && id <= 3229; |
| } |
| bool isAtomicMemory(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3246 && id <= 3263; |
| } |
| bool isImageLoad(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3288 && id <= 3299; |
| } |
| bool isImageStore(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3300 && id <= 3311; |
| } |
| bool isImage(const TFunction *func) |
| { |
| int id = func->uniqueId().get(); |
| return id >= 3264 && id <= 3311; |
| } |
| |
| } // namespace BuiltInGroup |
| |
| } // namespace sh |
| |
| #endif // COMPILER_TRANSLATOR_PARSECONTEXT_AUTOGEN_H_ |