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 2019 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_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
15namespace sh
16{
17
18namespace BuiltInGroup
19{
20
21bool isTextureOffsetNoBias(const TFunction *func)
22{
23 int id = func->uniqueId().get();
24 return id >= 671 && id <= 740;
25}
26bool isTextureOffsetBias(const TFunction *func)
27{
28 int id = func->uniqueId().get();
29 return id >= 741 && id <= 760;
30}
31bool isTextureGatherOffset(const TFunction *func)
32{
33 int id = func->uniqueId().get();
34 return id >= 838 && id <= 851;
35}
36bool isTextureGather(const TFunction *func)
37{
38 int id = func->uniqueId().get();
39 return id >= 814 && id <= 851;
40}
41bool isAtomicMemory(const TFunction *func)
42{
43 int id = func->uniqueId().get();
44 return id >= 868 && id <= 885;
45}
46bool isImageLoad(const TFunction *func)
47{
48 int id = func->uniqueId().get();
49 return id >= 910 && id <= 921;
50}
51bool isImageStore(const TFunction *func)
52{
53 int id = func->uniqueId().get();
54 return id >= 922 && id <= 933;
55}
56bool isImage(const TFunction *func)
57{
58 int id = func->uniqueId().get();
59 return id >= 886 && id <= 933;
60}
61
62} // namespace BuiltInGroup
63
64} // namespace sh
65
66#endif // COMPILER_TRANSLATOR_PARSECONTEXT_AUTOGEN_H_
67