#include "tests/test_utils/compiler_test.h"
#include "angle_gl.h"
#include "compiler/translator/Compiler.h"
#include "compiler/translator/FunctionLookup.h"
#include "compiler/translator/tree_util/IntermTraverse.h"
namespace sh
{
namespace
{
constexpr char kBinaryBlob[] = …;
bool IsBinaryBlob(const std::string &code)
{ … }
ImmutableString GetSymbolTableMangledName(TIntermAggregate *node)
{ … }
class FunctionCallFinder : public TIntermTraverser
{ … };
}
bool compileTestShader(GLenum type,
ShShaderSpec spec,
ShShaderOutput output,
const std::string &shaderString,
ShBuiltInResources *resources,
const ShCompileOptions &compileOptions,
std::string *translatedCode,
std::string *infoLog)
{ … }
bool compileTestShader(GLenum type,
ShShaderSpec spec,
ShShaderOutput output,
const std::string &shaderString,
const ShCompileOptions &compileOptions,
std::string *translatedCode,
std::string *infoLog)
{ … }
MatchOutputCodeTest::MatchOutputCodeTest(GLenum shaderType, ShShaderOutput outputType)
: … { … }
void MatchOutputCodeTest::setDefaultCompileOptions(const ShCompileOptions &defaultCompileOptions)
{ … }
void MatchOutputCodeTest::addOutputType(const ShShaderOutput outputType)
{ … }
ShBuiltInResources *MatchOutputCodeTest::getResources()
{ … }
void MatchOutputCodeTest::compile(const std::string &shaderString)
{ … }
void MatchOutputCodeTest::compile(const std::string &shaderString,
const ShCompileOptions &compileOptions)
{ … }
bool MatchOutputCodeTest::compileWithSettings(ShShaderOutput output,
const std::string &shaderString,
const ShCompileOptions &compileOptions,
std::string *translatedCode,
std::string *infoLog)
{ … }
bool MatchOutputCodeTest::foundInCodeRegex(ShShaderOutput output,
const std::regex ®exToFind,
std::smatch *match) const
{ … }
bool MatchOutputCodeTest::foundInCode(ShShaderOutput output, const char *stringToFind) const
{ … }
bool MatchOutputCodeTest::foundInCodeInOrder(ShShaderOutput output,
std::vector<const char *> stringsToFind)
{ … }
bool MatchOutputCodeTest::foundInCode(ShShaderOutput output,
const char *stringToFind,
const int expectedOccurrences) const
{ … }
bool MatchOutputCodeTest::foundInCode(const char *stringToFind) const
{ … }
bool MatchOutputCodeTest::foundInCodeRegex(const std::regex ®exToFind, std::smatch *match) const
{ … }
bool MatchOutputCodeTest::foundInCode(const char *stringToFind, const int expectedOccurrences) const
{ … }
bool MatchOutputCodeTest::foundInCodeInOrder(std::vector<const char *> stringsToFind)
{ … }
bool MatchOutputCodeTest::notFoundInCode(const char *stringToFind) const
{ … }
const TIntermAggregate *FindFunctionCallNode(TIntermNode *root, const TString &functionMangledName)
{ … }
}