#include "compiler/translator/tree_ops/glsl/RewriteRepeatedAssignToSwizzled.h"
#include "compiler/translator/tree_util/IntermNode_util.h"
#include "compiler/translator/tree_util/IntermTraverse.h"
namespace sh
{
namespace
{
class RewriteAssignToSwizzledTraverser : public TIntermTraverser
{ … };
bool RewriteAssignToSwizzledTraverser::rewrite(TCompiler *compiler, TIntermBlock *root)
{ … }
RewriteAssignToSwizzledTraverser::RewriteAssignToSwizzledTraverser()
: … { … }
void RewriteAssignToSwizzledTraverser::nextIteration()
{ … }
bool RewriteAssignToSwizzledTraverser::visitBinary(Visit, TIntermBinary *node)
{ … }
}
bool RewriteRepeatedAssignToSwizzled(TCompiler *compiler, TIntermBlock *root)
{ … }
}