• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_complete_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)21 bool isTextureOffsetNoBias(const TFunction *func)
22 {
23     int id = func->uniqueId().get();
24     return id >= 1130 && id <= 1276;
25 }
isTextureOffsetBias(const TFunction * func)26 bool isTextureOffsetBias(const TFunction *func)
27 {
28     int id = func->uniqueId().get();
29     return id >= 1277 && id <= 1311;
30 }
isTextureGatherOffsetsComp(const TFunction * func)31 bool isTextureGatherOffsetsComp(const TFunction *func)
32 {
33     int id = func->uniqueId().get();
34     return id >= 1356 && id <= 1371;
35 }
isTextureGatherOffsetsNoComp(const TFunction * func)36 bool isTextureGatherOffsetsNoComp(const TFunction *func)
37 {
38     int id = func->uniqueId().get();
39     return id >= 1372 && id <= 1391;
40 }
isTextureGatherOffsets(const TFunction * func)41 bool isTextureGatherOffsets(const TFunction *func)
42 {
43     int id = func->uniqueId().get();
44     return id >= 1356 && id <= 1391;
45 }
isTextureGatherOffsetComp(const TFunction * func)46 bool isTextureGatherOffsetComp(const TFunction *func)
47 {
48     int id = func->uniqueId().get();
49     return id >= 1392 && id <= 1400;
50 }
isTextureGatherOffsetNoComp(const TFunction * func)51 bool isTextureGatherOffsetNoComp(const TFunction *func)
52 {
53     int id = func->uniqueId().get();
54     return id >= 1401 && id <= 1412;
55 }
isTextureGatherOffset(const TFunction * func)56 bool isTextureGatherOffset(const TFunction *func)
57 {
58     int id = func->uniqueId().get();
59     return id >= 1392 && id <= 1412;
60 }
isTextureGather(const TFunction * func)61 bool isTextureGather(const TFunction *func)
62 {
63     int id = func->uniqueId().get();
64     return id >= 1325 && id <= 1412;
65 }
isAtomicMemory(const TFunction * func)66 bool isAtomicMemory(const TFunction *func)
67 {
68     int id = func->uniqueId().get();
69     return id >= 1474 && id <= 1491;
70 }
isImageLoad(const TFunction * func)71 bool isImageLoad(const TFunction *func)
72 {
73     int id = func->uniqueId().get();
74     return id >= 2128 && id <= 2160;
75 }
isImageStore(const TFunction * func)76 bool isImageStore(const TFunction *func)
77 {
78     int id = func->uniqueId().get();
79     return id >= 2161 && id <= 2193;
80 }
isImage(const TFunction * func)81 bool isImage(const TFunction *func)
82 {
83     int id = func->uniqueId().get();
84     return id >= 1492 && id <= 2193;
85 }
86 
87 }  // namespace BuiltInGroup
88 
89 }  // namespace sh
90 
91 #endif  // COMPILER_TRANSLATOR_PARSECONTEXT_AUTOGEN_H_
92