blob: d16aebd8638b402f9ac902fb031c8f1e6842486a [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 >= 3016 && id <= 3085;
}
bool isTextureOffsetBias(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3086 && id <= 3105;
}
bool isTextureGatherOffset(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3143 && id <= 3156;
}
bool isTextureGather(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3119 && id <= 3156;
}
bool isAtomicMemory(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3173 && id <= 3190;
}
bool isImageLoad(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3215 && id <= 3226;
}
bool isImageStore(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3227 && id <= 3238;
}
bool isImage(const TFunction *func)
{
int id = func->uniqueId().get();
return id >= 3191 && id <= 3238;
}
} // namespace BuiltInGroup
} // namespace sh
#endif // COMPILER_TRANSLATOR_PARSECONTEXT_AUTOGEN_H_