#include "compiler/translator/tree_ops/RewritePixelLocalStorage.h"
#include "common/angleutils.h"
#include "compiler/translator/StaticType.h"
#include "compiler/translator/SymbolTable.h"
#include "compiler/translator/tree_ops/MonomorphizeUnsupportedFunctions.h"
#include "compiler/translator/tree_util/BuiltIn.h"
#include "compiler/translator/tree_util/FindMain.h"
#include "compiler/translator/tree_util/IntermNode_util.h"
#include "compiler/translator/tree_util/IntermTraverse.h"
namespace sh
{
namespace
{
constexpr static TBasicType DataTypeOfPLSType(TBasicType plsType)
{ … }
constexpr static TBasicType DataTypeOfImageType(TBasicType imageType)
{ … }
template <typename T>
class PLSBackingStoreMap
{ … };
class RewritePLSTraverser : public TIntermTraverser
{ … };
class RewritePLSToImagesTraverser : public RewritePLSTraverser
{ … };
class RewritePLSToFramebufferFetchTraverser : public RewritePLSTraverser
{ … };
class RewriteANGLEToEXTTraverser : public RewritePLSTraverser
{ … };
}
bool RewritePixelLocalStorage(TCompiler *compiler,
TIntermBlock *root,
TSymbolTable &symbolTable,
const ShCompileOptions &compileOptions,
int shaderVersion)
{ … }
}