1 // GENERATED FILE - DO NOT EDIT. 2 // Generated by gen_builtin_symbols.py using data from builtin_variables.json and 3 // builtin_function_declarations.txt. 4 // 5 // Copyright 2020 The ANGLE Project Authors. All rights reserved. 6 // Use of this source code is governed by a BSD-style license that can be 7 // found in the LICENSE file. 8 // 9 // ParseContext_ESSL_autogen.h: 10 // Helpers for built-in related checks. 11 12 #ifndef COMPILER_TRANSLATOR_PARSECONTEXT_AUTOGEN_H_ 13 #define COMPILER_TRANSLATOR_PARSECONTEXT_AUTOGEN_H_ 14 15 namespace sh 16 { 17 18 namespace BuiltInGroup 19 { 20 isTextureOffsetNoBias(const TFunction * func)21bool isTextureOffsetNoBias(const TFunction *func) 22 { 23 int id = func->uniqueId().get(); 24 return id >= 3792 && id <= 3861; 25 } isTextureOffsetBias(const TFunction * func)26bool isTextureOffsetBias(const TFunction *func) 27 { 28 int id = func->uniqueId().get(); 29 return id >= 3862 && id <= 3881; 30 } isTextureGatherOffsetNoComp(const TFunction * func)31bool isTextureGatherOffsetNoComp(const TFunction *func) 32 { 33 int id = func->uniqueId().get(); 34 return id >= 3919 && id <= 3926; 35 } isTextureGatherOffsetComp(const TFunction * func)36bool isTextureGatherOffsetComp(const TFunction *func) 37 { 38 int id = func->uniqueId().get(); 39 return id >= 3927 && id <= 3932; 40 } isTextureGatherOffset(const TFunction * func)41bool isTextureGatherOffset(const TFunction *func) 42 { 43 int id = func->uniqueId().get(); 44 return id >= 3919 && id <= 3932; 45 } isTextureGatherOffsetsNoComp(const TFunction * func)46bool isTextureGatherOffsetsNoComp(const TFunction *func) 47 { 48 int id = func->uniqueId().get(); 49 return id >= 3933 && id <= 3949; 50 } isTextureGatherOffsetsComp(const TFunction * func)51bool isTextureGatherOffsetsComp(const TFunction *func) 52 { 53 int id = func->uniqueId().get(); 54 return id >= 3950 && id <= 3961; 55 } isTextureGatherOffsets(const TFunction * func)56bool isTextureGatherOffsets(const TFunction *func) 57 { 58 int id = func->uniqueId().get(); 59 return id >= 3933 && id <= 3961; 60 } isTextureGather(const TFunction * func)61bool isTextureGather(const TFunction *func) 62 { 63 int id = func->uniqueId().get(); 64 return id >= 3895 && id <= 3961; 65 } isInterpolationFS(const TFunction * func)66bool isInterpolationFS(const TFunction *func) 67 { 68 int id = func->uniqueId().get(); 69 return id >= 3974 && id <= 3997; 70 } isAtomicMemory(const TFunction * func)71bool isAtomicMemory(const TFunction *func) 72 { 73 int id = func->uniqueId().get(); 74 return id >= 4002 && id <= 4019; 75 } isImageStore(const TFunction * func)76bool isImageStore(const TFunction *func) 77 { 78 int id = func->uniqueId().get(); 79 return id >= 4056 && id <= 4073; 80 } isImageLoad(const TFunction * func)81bool isImageLoad(const TFunction *func) 82 { 83 int id = func->uniqueId().get(); 84 return id >= 4074 && id <= 4091; 85 } isImageAtomic(const TFunction * func)86bool isImageAtomic(const TFunction *func) 87 { 88 int id = func->uniqueId().get(); 89 return id >= 4092 && id <= 4667; 90 } isImage(const TFunction * func)91bool isImage(const TFunction *func) 92 { 93 int id = func->uniqueId().get(); 94 return id >= 4020 && id <= 4667; 95 } 96 97 } // namespace BuiltInGroup 98 99 } // namespace sh 100 101 #endif // COMPILER_TRANSLATOR_PARSECONTEXT_AUTOGEN_H_ 102