UE4 - hlslcc - Pack matrices last to avoid big set parameter calls (UE-2047)

[CL 2483441 by Rolando Caloca in Main branch]
This commit is contained in:
Rolando Caloca
2015-03-18 15:32:09 -04:00
parent 2657afe7f9
commit 2187f16734
5 changed files with 410 additions and 49 deletions

View File

@@ -0,0 +1,20 @@
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
CCIR.h - Cross-Compiler IR
=============================================================================*/
#pragma once
#include "HlslLexer.h"
namespace CrossCompiler
{
namespace IR
{
struct FIRCreator
{
FIRCreator(FLinearAllocator* InAllocator) {}
};
}
}

View File

@@ -7,6 +7,7 @@
#include "ShaderCompilerCommon.h"
#include "HlslParser.h"
#include "HlslExpressionParser.inl"
#include "CCIR.h"
namespace CrossCompiler
{
@@ -1715,6 +1716,8 @@ check(0);
return false;
}
IR::FIRCreator IRCreator(&Allocator);
bool bSuccess = true;
TLinearArray<AST::FNode*> Nodes(&Allocator);
while (Parser.Scanner.HasMoreTokens())