You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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:
20
Engine/Source/Developer/ShaderCompilerCommon/Private/CCIR.h
Normal file
20
Engine/Source/Developer/ShaderCompilerCommon/Private/CCIR.h
Normal 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) {}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user