blob: 9a5b6647b4c2c03b65d29583ce9a007501f25062 [file] [log] [blame]
// 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_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 >= 3017 && id <= 3086;
}
bool isTextureOffsetBias(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3087 && id <= 3106;
}
bool isTextureGatherOffset(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3144 && id <= 3157;
}
bool isTextureGather(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3120 && id <= 3157;
}
bool isAtomicMemory(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3174 && id <= 3191;
}
bool isImageLoad(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3216 && id <= 3227;
}
bool isImageStore(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3228 && id <= 3239;
}
bool isImage(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3192 && id <= 3239;
}
} // namespace BuiltInGroup
} // namespace sh
#endif // COMPILER_TRANSLATOR_PARSECONTEXT_AUTOGEN_H_